summaryrefslogtreecommitdiff
path: root/mgmtd/mgmt_txn.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-10-21 00:51:01 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2023-11-12 03:20:54 +0200
commitb3b5951ee7c74be9d53771a12e31d31e5c8e36c0 (patch)
tree431c50c9665a00998e6bda12bb43b73789362c6c /mgmtd/mgmt_txn.h
parent19bcca4f2e9a3ee3c8cc16608dcf303241bbf014 (diff)
mgmtd, lib: remove batch ids from all messages
Batch IDs are only used to verify that all messages were received and processed by a backend. It's not necessary to do that as we use reliable stream transport - messages can't be dropped or received out of order. This commit also fixes possible race condition that can happen if one backend process messages slower than other backends. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd/mgmt_txn.h')
-rw-r--r--mgmtd/mgmt_txn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgmtd/mgmt_txn.h b/mgmtd/mgmt_txn.h
index 8ca7e70cab..eec56b7f49 100644
--- a/mgmtd/mgmt_txn.h
+++ b/mgmtd/mgmt_txn.h
@@ -206,8 +206,8 @@ mgmt_txn_notify_be_txn_reply(uint64_t txn_id, bool create, bool success,
* Reply to backend adapater with config data create request.
*/
extern int
-mgmt_txn_notify_be_cfgdata_reply(uint64_t txn_id, uint64_t batch_id,
- bool success, char *error_if_any,
+mgmt_txn_notify_be_cfgdata_reply(uint64_t txn_id, bool success,
+ char *error_if_any,
struct mgmt_be_client_adapter *adapter);
/*