ctdb-killtcp: Use the given event context directly
authorMartin Schwenke <martin@meltin.net>
Wed, 2 Mar 2016 02:20:27 +0000 (13:20 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 1 Apr 2016 02:42:11 +0000 (04:42 +0200)
We don't want this code to depend on a CTDB context, so don't go
looking there for an event context.

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

index 0cf8599a378f24bfe75005e6a58834501223f1ca..8ca37f9b7da8e55d8c806f40b76582b1bcc527f8 100644 (file)
@@ -2798,7 +2798,7 @@ static void ctdb_tickle_sentenced_connections(struct tevent_context *ev,
 
        /* try tickling them again in a seconds time
         */
-       tevent_add_timer(killtcp->ctdb->ev, killtcp,
+       tevent_add_timer(ev, killtcp,
                         timeval_current_ofs(1, 0),
                         ctdb_tickle_sentenced_connections, killtcp);
 }