ctdb-common: Do not initialize run_proc inside run_event
authorAmitay Isaacs <amitay@gmail.com>
Wed, 9 May 2018 06:42:40 +0000 (16:42 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jun 2018 20:34:18 +0000 (22:34 +0200)
commita883f8b0920d68d2d3b923463de59384a4eb8e8f
tree10a7c4d52e02c6b1541f0913b987bc6138143134
parent4b04c27377e835a7bccbf2175e94da730374de81
ctdb-common: Do not initialize run_proc inside run_event

Allowing run_event_init() to take run_proc_context as an argument allows
to create multiple run_event instances with a single run_proc_context.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/run_event.c
ctdb/common/run_event.h
ctdb/server/ctdb_eventd.c
ctdb/tests/src/run_event_test.c