diff options
author | Amitay Isaacs <amitay@gmail.com> | 2014-09-12 10:50:27 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-09-12 08:46:14 +0200 |
commit | f5f11e1a05d4d75a7662d6c413a14c4cd18f8ed9 (patch) | |
tree | 89abaa0dea4f11c8cc6ce11ce624ecf86a1b9583 /ctdb/server/ctdb_daemon.c | |
parent | 3c1bae12217ead74863a7cdd9b8a338aef80adb1 (diff) | |
download | samba-f5f11e1a05d4d75a7662d6c413a14c4cd18f8ed9.tar.gz samba-f5f11e1a05d4d75a7662d6c413a14c4cd18f8ed9.tar.xz samba-f5f11e1a05d4d75a7662d6c413a14c4cd18f8ed9.zip |
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>
Diffstat (limited to 'ctdb/server/ctdb_daemon.c')
-rw-r--r-- | ctdb/server/ctdb_daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index 46a134c60d..65b7109620 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -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; } |