git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66bb65f
)
vacuum: bump the number of fast-path runs in the vacuum child destructor
author
Michael Adam
<obnox@samba.org>
Mon, 20 Dec 2010 16:49:29 +0000
(17:49 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 9 Mar 2011 23:37:01 +0000
(
00:37
+0100)
server/ctdb_vacuum.c
patch
|
blob
|
history
diff --git
a/server/ctdb_vacuum.c
b/server/ctdb_vacuum.c
index e4168cae2efc8572d8214ec18f5cc04cccc69cd6..946aa322a398e66aaa0904042f4bf9d43439aa5f 100644
(file)
--- a/
server/ctdb_vacuum.c
+++ b/
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);