git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e54347f
)
return -1 if ctdb ping failed
author
root
<root@test1n1.VSOFS1.COM>
Mon, 8 Dec 2008 01:57:40 +0000
(12:57 +1100)
committer
root
<root@test1n1.VSOFS1.COM>
Mon, 8 Dec 2008 01:57:40 +0000
(12:57 +1100)
(This used to be ctdb commit
691b9c0f1771afa564a5959405f2e7a54c334d45
)
ctdb/tools/ctdb.c
patch
|
blob
|
history
diff --git
a/ctdb/tools/ctdb.c
b/ctdb/tools/ctdb.c
index 034a02ac62f3b6741d007293f09aff59196d51b0..27fa7de2e192436291d22d667c142fc7af811bcb 100644
(file)
--- a/
ctdb/tools/ctdb.c
+++ b/
ctdb/tools/ctdb.c
@@
-1697,6
+1697,7
@@
static int control_ping(struct ctdb_context *ctdb, int argc, const char **argv)
ret = ctdb_ctrl_ping(ctdb, options.pnn);
if (ret == -1) {
printf("Unable to get ping response from node %u\n", options.pnn);
+ return -1;
} else {
printf("response from %u time=%.6f sec (%d clients)\n",
options.pnn, timeval_elapsed(&tv), ret);