]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
show ctdb control timeout
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 May 2007 11:11:06 +0000 (21:11 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 19 May 2007 11:11:06 +0000 (21:11 +1000)
(This used to be ctdb commit 03921eacb942c7aa6b81236c6603dc640cefe2bf)

ctdb/common/ctdb_client.c

index c51fcd7b05bc23219dec54e80f30708a1d33685c..c95dc65f183a1d1c05dd9e7b093e7d3438b97152 100644 (file)
@@ -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;
        }