ctdb-daemon: Do not run monitor event if any other event is already running
commitcbffbb7c2f406fc1d8ebad3c531cc2757232690e
authorAmitay Isaacs <amitay@gmail.com>
Thu, 19 Dec 2013 02:01:25 +0000 (19 13:01 +1100)
committerMartin Schwenke <martin@meltin.net>
Tue, 21 Jan 2014 00:30:41 +0000 (21 11:30 +1100)
treed4d98fd570e0d8fdf5e6d197c0cc938018972bf8
parente758f4111356fafce5b5c8393648c9ea5c400601
ctdb-daemon: Do not run monitor event if any other event is already running

Any currently running monitor events are cancelled if any other events
are scheduled.  However, this does not stop monitor events to be run
when other events are already running.

Keep track of the number of active events and schedule monitor event
only if there are no active events.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/include/ctdb_private.h
ctdb/server/eventscript.c