diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-02-08 15:29:27 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-02-08 15:29:27 +1100 |
commit | 73f8be16c613a3767c44e29dab9b1d328a04e272 (patch) | |
tree | 3f2faf890f71deb76815b5f5dd17480a2527ec45 /ctdb/server/ctdb_control.c | |
parent | 1eafa68f0f3b63dda173d939ed9e4882872b3bea (diff) | |
download | samba-73f8be16c613a3767c44e29dab9b1d328a04e272.tar.gz |
ReadOnly: add per-database statistics to view how much delegations/revokes we have
(This used to be ctdb commit 751ed46197661eb841042ab6a02855a51dd0b17c)
Diffstat (limited to 'ctdb/server/ctdb_control.c')
-rw-r--r-- | ctdb/server/ctdb_control.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c index 060f2c5cf33..c73458825cd 100644 --- a/ctdb/server/ctdb_control.c +++ b/ctdb/server/ctdb_control.c @@ -630,6 +630,10 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb, CHECK_CONTROL_DATA_SIZE(size); return ctdb_control_schedule_for_deletion(ctdb, indata); } + case CTDB_CONTROL_GET_DB_STATISTICS: + CHECK_CONTROL_DATA_SIZE(sizeof(uint32_t)); + return ctdb_control_get_db_statistics(ctdb, *(uint32_t *)indata.dptr, outdata); + default: DEBUG(DEBUG_CRIT,(__location__ " Unknown CTDB control opcode %u\n", opcode)); return -1; |