ctdbd: fix comment explaining redirection of CTDB_REQ_CALL redirection.
authorMichael Adam <obnox@samba.org>
Fri, 17 May 2013 09:05:44 +0000 (11:05 +0200)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 24 May 2013 12:06:24 +0000 (22:06 +1000)
Signed-off-by: Michael Adam <obnox@samba.org>
server/ctdb_call.c

index feb3e61ee766ab58760f32ca70b90ef4042c11cf..a98903dfe87b641c3db6e7d520a6170b34298bec 100644 (file)
@@ -801,8 +801,11 @@ void ctdb_request_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
                return;
        }
 
-       /* if we are not the dmaster and are not hosting any delegations,
-          then send a redirect to the requesting node */
+       /*
+        * If we are not the dmaster and are not hosting any delegations,
+        * then we redirect the request to the node than can answer it
+        * (the lmaster or the dmaster).
+        */
        if ((header.dmaster != ctdb->pnn) 
            && (!(header.flags & CTDB_REC_RO_HAVE_DELEGATIONS)) ) {
                talloc_free(data.dptr);