STATISTICS: add total counts for number of delegations and number of revokes
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 8 Feb 2012 02:42:30 +0000 (13:42 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 8 Feb 2012 02:42:30 +0000 (13:42 +1100)
commit1eafa68f0f3b63dda173d939ed9e4882872b3bea
tree0a7a2fcedf8b0294caf0faa8f50fdc86dcf4ea63
parent770bba6718a9a0dc99b0828d17cb047241a1fa5b
STATISTICS: add total counts for number of delegations and number of revokes

Everytime we give a delegation to another node we count this as one delegation.
If the same record is delegated to several nodes we count one for each node.

Everytime a record has all its delegations revoked we count this as one revoke.

(This used to be ctdb commit b098bcf8007be63889aaed640a951b0eeaa9d191)
ctdb/include/ctdb_protocol.h
ctdb/server/ctdb_call.c
ctdb/server/ctdb_daemon.c
ctdb/tools/ctdb.c