recoverd: Create recoverd monitoring timed events off recoverd context ctdb-2.1
authorAmitay Isaacs <amitay@gmail.com>
Wed, 9 Jan 2013 05:22:39 +0000 (16:22 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 9 Jan 2013 05:22:39 +0000 (16:22 +1100)
This ensures that when shutting down CTDB, all the timed events
associated with monitoring recoverd are destroyed and recoverd
is not restarted.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
server/ctdb_recoverd.c

index 5f8304447d82affe45ff6dca2c6dc1d6ac149287..0f8aa91337cba77ec2ea3fa5e9f70ccc4a91b2a4 100644 (file)
@@ -3971,7 +3971,7 @@ static void ctdb_check_recd(struct event_context *ev, struct timed_event *te,
                return;
        }
 
-       event_add_timed(ctdb->ev, ctdb
+       event_add_timed(ctdb->ev, ctdb->recd_ctx,
                        timeval_current_ofs(30, 0),
                        ctdb_check_recd, ctdb);
 }