mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 07:15:17 +00:00
ovsdb-idl: Avoid redundant clearing and parsing of received data.
ovsdb_idl_db_parse_monitor_reply() clears the IDL and parses the
received data. There's no need to do it again afterward.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Fixes: 1b1d2e6daa
("ovsdb: Introduce experimental support for clustered databases.")
Acked-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
@@ -819,9 +819,6 @@ ovsdb_idl_process_response(struct ovsdb_idl *idl, struct jsonrpc_msg *msg)
|
|||||||
ovsdb_idl_db_parse_monitor_reply(&idl->data, msg->result,
|
ovsdb_idl_db_parse_monitor_reply(&idl->data, msg->result,
|
||||||
OVSDB_IDL_MM_MONITOR);
|
OVSDB_IDL_MM_MONITOR);
|
||||||
idl->data.change_seqno++;
|
idl->data.change_seqno++;
|
||||||
ovsdb_idl_clear(idl);
|
|
||||||
ovsdb_idl_db_parse_update(&idl->data, msg->result,
|
|
||||||
OVSDB_IDL_MM_MONITOR);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDL_S_MONITORING:
|
case IDL_S_MONITORING:
|
||||||
|
Reference in New Issue
Block a user