ctdb-daemon: Do not bother printing script timeout count
authorMartin Schwenke <martin@meltin.net>
Wed, 28 Oct 2015 05:39:18 +0000 (16:39 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 16 Nov 2015 07:42:11 +0000 (08:42 +0100)
It is only updated for monitor events, so it is meaningless here.

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

index c6e31282ab265a7e6018a1e966754a9296cad614..117ec807f8d0522da51569eb92e0423763e040d6 100644 (file)
@@ -547,10 +547,10 @@ static void ctdb_event_script_timeout(struct tevent_context *ev,
        struct ctdb_script *current = get_current_script(state);
        struct debug_hung_script_state *debug_state;
 
-       DEBUG(DEBUG_ERR,("Event script '%s %s %s' timed out after %.1fs, count: %u, pid: %d\n",
+       DEBUG(DEBUG_ERR,("Event script '%s %s %s' timed out after %.1fs, pid: %d\n",
                         current->name, ctdb_eventscript_call_names[state->call], state->options,
                         timeval_elapsed(&current->start),
-                        ctdb->event_script_timeouts, state->child));
+                        state->child));
 
        /* ignore timeouts for these events */
        switch (state->call) {