summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_call.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-05-17 11:05:44 +0200
committerAmitay Isaacs <amitay@gmail.com>2013-05-24 22:06:24 +1000
commitd1dd29197e62e16f97d041d890a7ccfe65e60cd7 (patch)
tree5abb7782c5f9f18bd9dcdfa68bd84471f20a2488 /ctdb/server/ctdb_call.c
parent3f03a3c8a3372958c3d2260a9f0eaa99f5548df4 (diff)
downloadsamba-d1dd29197e62e16f97d041d890a7ccfe65e60cd7.tar.gz
samba-d1dd29197e62e16f97d041d890a7ccfe65e60cd7.tar.xz
samba-d1dd29197e62e16f97d041d890a7ccfe65e60cd7.zip
ctdbd: fix comment explaining redirection of CTDB_REQ_CALL redirection.
Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit b697625b184227dad1be31a41b7a3fd9bd312e29)
Diffstat (limited to 'ctdb/server/ctdb_call.c')
-rw-r--r--ctdb/server/ctdb_call.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c
index feb3e61ee76..a98903dfe87 100644
--- a/ctdb/server/ctdb_call.c
+++ b/ctdb/server/ctdb_call.c
@@ -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);