]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-client: Set control opcode in reply for one-way controls
authorAmitay Isaacs <amitay@gmail.com>
Fri, 22 Apr 2016 03:53:50 +0000 (13:53 +1000)
committerMartin Schwenke <martins@samba.org>
Sat, 23 Apr 2016 21:55:15 +0000 (23:55 +0200)
Some controls are fire-and-forget (CTDB_CTRL_FLAG_NOREPLY).  Since there
is no reply received, the opcode in the ctdb_reply_control structure
never gets set.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/client/client_control.c

index b25ff40230e5ffe7013cd93472df13df90e4b16c..5c47c9ac89226ce27c92f9077b2a621630cf4739 100644 (file)
@@ -91,6 +91,7 @@ struct tevent_req *ctdb_client_control_send(TALLOC_CTX *mem_ctx,
        if (tevent_req_nomem(state->reply, req)) {
                return tevent_req_post(req, ev);
        }
+       state->reply->rdata.opcode = request->rdata.opcode;
 
        talloc_set_destructor(state, ctdb_client_control_state_destructor);