vacuum: bump the number of fast-path runs in the vacuum child destructor
authorMichael Adam <obnox@samba.org>
Mon, 20 Dec 2010 16:49:29 +0000 (17:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2011 15:23:46 +0000 (17:23 +0200)
(cherry picked from commit c0668bfe0bb4e69988ae34d875568d08539e6fb9)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
server/ctdb_vacuum.c

index 2006b8ad3561e83bf631edf88cc546747f717f58..1b9aff2169c1c5abc9584b7a38b0426ac3e1f1e0 100644 (file)
@@ -931,6 +931,9 @@ static int vacuum_child_destructor(struct ctdb_vacuum_child_context *child_ctx)
 
        if (child_ctx->child_pid != -1) {
                kill(child_ctx->child_pid, SIGKILL);
+       } else {
+               /* Bump the number of successful fast-path runs. */
+               child_ctx->vacuum_handle->fast_path_count++;
        }
 
        event_add_timed(ctdb->ev, child_ctx->vacuum_handle,