1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

ctdb-daemon: Decrement pending calls statistics when calls are deferred

Deferred calls should not be treated as pending calls since they are
re-processed from the beginning.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2014-09-12 10:50:27 +10:00 committed by Amitay Isaacs
parent 3c1bae1221
commit f5f11e1a05

View File

@ -653,6 +653,7 @@ static void daemon_request_call_from_client(struct ctdb_client *client,
if (ret != 0) {
DEBUG(DEBUG_ERR,(__location__ " ctdb_ltdb_unlock() failed with error %d\n", ret));
}
CTDB_DECREMENT_STAT(ctdb, pending_calls);
return;
}
}
@ -685,6 +686,7 @@ static void daemon_request_call_from_client(struct ctdb_client *client,
if (ctdb_add_revoke_deferred_call(ctdb, ctdb_db, key, (struct ctdb_req_header *)c, daemon_incoming_packet, client) != 0) {
ctdb_fatal(ctdb, "Failed to add deferred call for revoke child");
}
CTDB_DECREMENT_STAT(ctdb, pending_calls);
return;
}
@ -706,6 +708,7 @@ static void daemon_request_call_from_client(struct ctdb_client *client,
ctdb_fatal(ctdb, "Failed to add deferred call for revoke child");
}
CTDB_DECREMENT_STAT(ctdb, pending_calls);
return;
}