diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-05-11 09:28:59 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-05-11 09:44:53 +1000 |
commit | 6f1221e9e15e9d2b651c976fce51b301f7b5c6cd (patch) | |
tree | 35693a68416b9fbf31836ff2458963a80dcb8ce5 /ctdb/server/ctdb_recover.c | |
parent | 72c275dd709f678bc79e2fcb338662753b9681f9 (diff) | |
download | samba-6f1221e9e15e9d2b651c976fce51b301f7b5c6cd.tar.gz samba-6f1221e9e15e9d2b651c976fce51b301f7b5c6cd.tar.xz samba-6f1221e9e15e9d2b651c976fce51b301f7b5c6cd.zip |
Add the number of performed recoveries to the "ctdb statistics" output.
(This used to be ctdb commit fa045733cb81412f0d02ab52d74eabc7efca8b3d)
Diffstat (limited to 'ctdb/server/ctdb_recover.c')
-rw-r--r-- | ctdb/server/ctdb_recover.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c index 4a1e04c2f1..22e48986f4 100644 --- a/ctdb/server/ctdb_recover.c +++ b/ctdb/server/ctdb_recover.c @@ -938,6 +938,7 @@ static void ctdb_end_recovery_callback(struct ctdb_context *ctdb, int status, vo struct recovery_callback_state *state = talloc_get_type(p, struct recovery_callback_state); ctdb_enable_monitoring(ctdb); + ctdb->statistics.num_recoveries++; if (status != 0) { DEBUG(DEBUG_ERR,(__location__ " recovered event script failed (status %d)\n", status)); |