in the "lvsmaster" command, return -1 if there is no lvsmaster
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 11 May 2009 03:56:28 +0000 (13:56 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 11 May 2009 03:56:28 +0000 (13:56 +1000)
tools/ctdb.c

index a4120e87f1c3c76de99f6c520656a88958ea0dae..44c8d074b584cb11a504c08d42fffa3ef315a8b4 100644 (file)
@@ -1881,7 +1881,7 @@ static int control_lvsmaster(struct ctdb_context *ctdb, int argc, const char **a
        }
 
        printf("There is no LVS master\n");
-       return 0;
+       return -1;
 }
 
 /*