Skip to content

Commit 8fb0089

Browse files
committed
Refactor: based: Ignore cib_discard_reply
Send a reply even if the cib_discard_reply flag is set. The client will still discard the reply. (TODO: The client discards the reply for sync requests but still needs to discard it for async.) Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent 4667af5 commit 8fb0089

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

daemons/based/based_callbacks.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,7 @@ parse_peer_options(const cib__operation_t *operation, pcmk__request_t *request,
337337
* to all nodes. Also don't send a reply if the client specifically told us
338338
* not to.
339339
*/
340-
const bool can_reply = !operation->modifies_cib
341-
&& !pcmk__is_set(request->call_options,
342-
cib_discard_reply);
340+
const bool can_reply = !operation->modifies_cib;
343341

344342
const char *host = pcmk__xe_get(request->xml, PCMK__XA_CIB_HOST);
345343
const char *delegated = pcmk__xe_get(request->xml,
@@ -746,11 +744,6 @@ based_handle_request(pcmk__request_t *request)
746744
return pcmk_rc_ok;
747745
}
748746

749-
if (pcmk__is_set(request->call_options, cib_discard_reply)) {
750-
local_notify = false;
751-
pcmk__trace("Client is not interested in the reply");
752-
}
753-
754747
if (cib_status != pcmk_rc_ok) {
755748
rc = cib_status;
756749
pcmk__err("Ignoring request because cluster configuration is invalid "

0 commit comments

Comments
 (0)