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)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 23:37:01 +0000 (00:37 +0100)
server/ctdb_vacuum.c

index e4168cae2efc8572d8214ec18f5cc04cccc69cd6..946aa322a398e66aaa0904042f4bf9d43439aa5f 100644 (file)
@@ -934,6 +934,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++;
        }
 
        DLIST_REMOVE(ctdb->vacuumers, child_ctx);