recoverd: fix a comment in main_loop
authorMichael Adam <obnox@samba.org>
Fri, 21 Jun 2013 15:57:37 +0000 (17:57 +0200)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jul 2013 07:47:06 +0000 (17:47 +1000)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit ac06c46e4a80c635f6094b5ac6f0bf3e3a02db95)

server/ctdb_recoverd.c

index f2a4638dd8bf1a860bd7901354ea5336a8ab878c..cbe60d5691e71ef3c89ea28de27b4952eb513250 100644 (file)
@@ -3280,9 +3280,9 @@ static void main_loop(struct ctdb_context *ctdb, struct ctdb_recoverd *rec,
        }
 
        /*
-        * if the current recmaster do not have CTDB_CAP_RECMASTER,
-        * but we have force an election and try to become the new
-        * recmaster
+        * If the current recmaster does not have CTDB_CAP_RECMASTER,
+        * but we have, then force an election and try to become the new
+        * recmaster.
         */
        if ((rec->ctdb->nodes[rec->recmaster]->capabilities & CTDB_CAP_RECMASTER) == 0 &&
            (rec->ctdb->capabilities & CTDB_CAP_RECMASTER) &&