git.samba.org
/
obnox
/
ctdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdbd: Update the get_tunable code to return -EINVAL for unknown tunable
[obnox/ctdb.git]
/
tools
/
ctdb.c
diff --git
a/tools/ctdb.c
b/tools/ctdb.c
index 48ca93ba0eecf4a2e8e00fd8c30a3a9a371c4486..b3cbade35eca60cf36a0a7ea5c5d960339c5f28c 100644
(file)
--- a/
tools/ctdb.c
+++ b/
tools/ctdb.c
@@
-4430,7
+4430,7
@@
static int control_getvar(struct ctdb_context *ctdb, int argc, const char **argv
name = argv[0];
ret = ctdb_ctrl_get_tunable(ctdb, TIMELIMIT(), options.pnn, name, &value);
- if (ret
== -1
) {
+ if (ret
!= 0
) {
DEBUG(DEBUG_ERR, ("Unable to get tunable variable '%s'\n", name));
return -1;
}