summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-12-20 17:49:29 +0100
committerMichael Adam <obnox@samba.org>2011-03-14 13:35:47 +0100
commitf502e5aa983fd0d9dc11f6d4d957aaf0a91b2b8c (patch)
tree67de69b803c198125059217240b837326a562842
parent3c4c560019a1cc5c22f2c20f03674c853f59e857 (diff)
downloadsamba-f502e5aa983fd0d9dc11f6d4d957aaf0a91b2b8c.tar.gz
samba-f502e5aa983fd0d9dc11f6d4d957aaf0a91b2b8c.tar.xz
samba-f502e5aa983fd0d9dc11f6d4d957aaf0a91b2b8c.zip
vacuum: bump the number of fast-path runs in the vacuum child destructor
(This used to be ctdb commit c0668bfe0bb4e69988ae34d875568d08539e6fb9)
-rw-r--r--ctdb/server/ctdb_vacuum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c
index e4168cae2e..946aa322a3 100644
--- a/ctdb/server/ctdb_vacuum.c
+++ b/ctdb/server/ctdb_vacuum.c
@@ -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);