From cab1f75db500df4f778aaac45b2305a476a44d69 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 20 Dec 2010 17:54:04 +0100 Subject: vacuum: reset the fast path count in the event handle if it exceeds the limit. (This used to be ctdb commit 91e6d36a190b1c9e4c8b18f7833e51c5c9a67574) --- ctdb/server/ctdb_vacuum.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index 946aa322a3..b6fff1e340 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -1029,6 +1029,10 @@ ctdb_vacuum_event(struct event_context *ev, struct timed_event *te, return; } + if (vacuum_handle->fast_path_count > ctdb->tunable.vacuum_fast_path_count) { + vacuum_handle->fast_path_count = 0; + } + child_ctx->child_pid = ctdb_fork(ctdb); if (child_ctx->child_pid == (pid_t)-1) { close(child_ctx->fd[0]); -- cgit