s3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the control
authorMichael Adam <obnox@samba.org>
Tue, 8 Mar 2011 15:26:34 +0000 (16:26 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2011 16:10:36 +0000 (18:10 +0200)
The only flag that is currently used is the NOREPLY flag to indicate that
the client expects no reply packet. This needs to get passed down to the
ctdb daemon so that it really does not send a reply.
(cherry picked from commit 3c9ae69f34ba444bfcdc93923b2eee9ecde419de)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/lib/ctdbd_conn.c

index 4137bdd50309deba725f3982f3eea2ed006ee64f..45e992ce8b3a81cf9f95ff118f11a6590f46deb8 100644 (file)
@@ -814,6 +814,7 @@ static NTSTATUS ctdbd_control(struct ctdbd_connection *conn,
        req.opcode           = opcode;
        req.srvid            = srvid;
        req.datalen          = data.dsize;
+       req.flags            = flags;
 
        DEBUG(10, ("ctdbd_control: Sending ctdb packet\n"));
        ctdb_packet_dump(&req.hdr);