Merge pull request #13977 from anlancs/fix/mgmt-bool-change

mgmtd: adjust one unnecessary bool convert
This commit is contained in:
Donald Sharp 2023-07-12 14:45:58 -04:00 committed by GitHub
commit c362e274b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -1160,8 +1160,7 @@ int mgmt_fe_send_set_cfg_reply(uint64_t session_id, uint64_t txn_id,
}
return fe_adapter_send_set_cfg_reply(session, ds_id, req_id,
result == MGMTD_SUCCESS ? true
: false,
result == MGMTD_SUCCESS,
error_if_any, implicit_commit);
}

View file

@ -1380,8 +1380,7 @@ static int mgmt_txn_send_be_cfg_data(struct mgmt_txn_ctx *txn,
batch->batch_id,
cfg_req.cfgdata_reqs,
cfg_req.num_reqs,
indx == num_batches ? true
: false)) {
indx == num_batches)) {
(void)mgmt_txn_send_commit_cfg_reply(
txn, MGMTD_INTERNAL_ERROR,
"Internal Error! Could not send config data to backend!");