summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctdb/client/ctdb_client.c6
-rw-r--r--ctdb/server/ctdb_call.c3
-rw-r--r--ctdb/tests/src/ctdb_bench.c6
3 files changed, 15 insertions, 0 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c
index f0172e4232..870edaa582 100644
--- a/ctdb/client/ctdb_client.c
+++ b/ctdb/client/ctdb_client.c
@@ -388,6 +388,9 @@ static struct ctdb_client_call_state *ctdb_client_call_local_send(struct ctdb_db
state->ctdb_db = ctdb_db;
ret = ctdb_call_local(ctdb_db, state->call, header, state, data, true);
+ if (ret != 0) {
+ DEBUG(DEBUG_DEBUG,("ctdb_call_local() failed, ignoring return code %d\n", ret));
+ }
return state;
}
@@ -916,6 +919,9 @@ static void invoke_control_callback(struct event_context *ev, struct timed_event
NULL,
NULL,
NULL);
+ if (ret != 0) {
+ DEBUG(DEBUG_DEBUG,("ctdb_control_recv() failed, ignoring return code %d\n", ret));
+ }
talloc_free(tmp_ctx);
}
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c
index ddeaae6f99..f7d1eca6bf 100644
--- a/ctdb/server/ctdb_call.c
+++ b/ctdb/server/ctdb_call.c
@@ -937,6 +937,9 @@ struct ctdb_call_state *ctdb_call_local_send(struct ctdb_db_context *ctdb_db,
state->ctdb_db = ctdb_db;
ret = ctdb_call_local(ctdb_db, state->call, header, state, data, true);
+ if (ret != 0) {
+ DEBUG(DEBUG_DEBUG,("ctdb_call_local() failed, ignoring return code %d\n", ret));
+ }
event_add_timed(ctdb->ev, state, timeval_zero(), call_local_trigger, state);
diff --git a/ctdb/tests/src/ctdb_bench.c b/ctdb/tests/src/ctdb_bench.c
index 8e0e0d7956..14d25a138f 100644
--- a/ctdb/tests/src/ctdb_bench.c
+++ b/ctdb/tests/src/ctdb_bench.c
@@ -234,7 +234,13 @@ int main(int argc, const char *argv[])
/* setup a ctdb call function */
ret = ctdb_set_call(ctdb_db, incr_func, FUNC_INCR);
+ if (ret != 0) {
+ DEBUG(DEBUG_DEBUG,("ctdb_set_call() failed, ignoring return code %d\n", ret));
+ }
ret = ctdb_set_call(ctdb_db, fetch_func, FUNC_FETCH);
+ if (ret != 0) {
+ DEBUG(DEBUG_DEBUG,("ctdb_set_call() failed, ignoring return code %d\n", ret));
+ }
if (ctdb_client_set_message_handler(ctdb, 0, ring_message_handler,&msg_count))
goto error;