1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

vacuum: reset the fast path count in the event handle if it exceeds the limit.

(This used to be ctdb commit 91e6d36a190b1c9e4c8b18f7833e51c5c9a67574)
This commit is contained in:
Michael Adam 2010-12-20 17:54:04 +01:00
parent f502e5aa98
commit cab1f75db5

View File

@ -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]);