ctdb-scripts: Fix incorrect comment
authorMartin Schwenke <martin@meltin.net>
Mon, 18 Apr 2016 04:19:10 +0000 (14:19 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Apr 2016 05:10:14 +0000 (07:10 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/11.natgw

index bc00788e7b7451c3ceb071ec9c73cd4854f9dac6..d6f8161efd9b138e122932d01a235d7ed264730a 100755 (executable)
@@ -156,7 +156,7 @@ natgw_set_slave ()
 natgw_ensure_master ()
 {
     set -- $("${CTDB_HELPER_BINDIR}/ctdb_natgw" master)
-    natgwmaster="${1:--1}" # Default is -1 if natgwlist fails
+    natgwmaster="${1:--1}" # Default is -1, for failure above
     natgwip="$2"
 
     if [ "$natgwmaster" = "-1" ]; then