From 6f1221e9e15e9d2b651c976fce51b301f7b5c6cd Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 11 May 2010 09:28:59 +1000 Subject: Add the number of performed recoveries to the "ctdb statistics" output. (This used to be ctdb commit fa045733cb81412f0d02ab52d74eabc7efca8b3d) --- ctdb/server/ctdb_recover.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ctdb/server/ctdb_recover.c') 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)); -- cgit