]> git.proxmox.com Git - ovs.git/commitdiff
ovsdb-idl: Avoid redundant clearing and parsing of received data.
authorBen Pfaff <blp@ovn.org>
Fri, 20 Nov 2020 18:55:59 +0000 (10:55 -0800)
committerBen Pfaff <blp@ovn.org>
Sat, 19 Dec 2020 02:31:22 +0000 (18:31 -0800)
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: 1b1d2e6daa56 ("ovsdb: Introduce experimental support for clustered databases.")
Acked-by: Ilya Maximets <i.maximets@ovn.org>
lib/ovsdb-idl.c

index efaa08a1e98f8ddcaea50aa6321cf16f27d5ff94..fb638c499c5145a55a9a790524d0503d6e89c1ce 100644 (file)
@@ -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_MM_MONITOR);
         idl->data.change_seqno++;
-        ovsdb_idl_clear(idl);
-        ovsdb_idl_db_parse_update(&idl->data, msg->result,
-                                  OVSDB_IDL_MM_MONITOR);
         break;
 
     case IDL_S_MONITORING: