summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-19 21:11:06 +1000
committerAndrew Tridgell <tridge@samba.org>2007-05-19 21:11:06 +1000
commitc02fee6ed33d847abc8a5fefaa5b7bbd2e999d1c (patch)
tree6dcaa06a1085d22787500caf28949665e954fbec /ctdb
parentd549f1e1a37611fac16ede44ed130023ac4d3a9e (diff)
show ctdb control timeout
(This used to be ctdb commit 03921eacb942c7aa6b81236c6603dc640cefe2bf)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/ctdb_client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/common/ctdb_client.c b/ctdb/common/ctdb_client.c
index c51fcd7b05..c95dc65f18 100644
--- a/ctdb/common/ctdb_client.c
+++ b/ctdb/common/ctdb_client.c
@@ -754,6 +754,11 @@ int ctdb_control(struct ctdb_context *ctdb, uint32_t destnode, uint64_t srvid,
}
if (timed_out) {
talloc_free(state);
+ if (errormsg) {
+ (*errormsg) = talloc_strdup(mem_ctx, "control timed out");
+ } else {
+ DEBUG(0,("ctdb_control timed out\n"));
+ }
return -1;
}