diff options
Diffstat (limited to 'ctdb/server/ctdb_daemon.c')
-rw-r--r-- | ctdb/server/ctdb_daemon.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index 39fb4edd61..0a57a8af29 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -401,7 +401,11 @@ static void daemon_request_call_from_client(struct ctdb_client *client, dstate = talloc(client, struct daemon_call_state); if (dstate == NULL) { - ctdb_ltdb_unlock(ctdb_db, key); + ret = ctdb_ltdb_unlock(ctdb_db, key); + if (ret != 0) { + DEBUG(DEBUG_ERR,(__location__ " ctdb_ltdb_unlock() failed with error %d\n", ret)); + } + DEBUG(DEBUG_ERR,(__location__ " Unable to allocate dstate\n")); if (client->ctdb->statistics.pending_calls > 0) { ctdb->statistics.pending_calls--; @@ -415,7 +419,11 @@ static void daemon_request_call_from_client(struct ctdb_client *client, call = dstate->call = talloc_zero(dstate, struct ctdb_call); if (call == NULL) { - ctdb_ltdb_unlock(ctdb_db, key); + ret = ctdb_ltdb_unlock(ctdb_db, key); + if (ret != 0) { + DEBUG(DEBUG_ERR,(__location__ " ctdb_ltdb_unlock() failed with error %d\n", ret)); + } + DEBUG(DEBUG_ERR,(__location__ " Unable to allocate call\n")); if (client->ctdb->statistics.pending_calls > 0) { ctdb->statistics.pending_calls--; @@ -436,7 +444,10 @@ static void daemon_request_call_from_client(struct ctdb_client *client, state = ctdb_daemon_call_send_remote(ctdb_db, call, &header); } - ctdb_ltdb_unlock(ctdb_db, key); + ret = ctdb_ltdb_unlock(ctdb_db, key); + if (ret != 0) { + DEBUG(DEBUG_ERR,(__location__ " ctdb_ltdb_unlock() failed with error %d\n", ret)); + } if (state == NULL) { DEBUG(DEBUG_ERR,(__location__ " Unable to setup call send\n")); |