Skip to content

Commit

Permalink
bridge: Omit alerts on the cfm_remote_opstate column.
Browse files Browse the repository at this point in the history
This column should be write only, otherwise every call to update it
has to make a trip to the database.  Since this column is updated
every time through the run loop as part of refresh_instant_stats(),
this patch fixes a significant performance degradation.

Signed-off-by: Ethan Jackson <[email protected]>
  • Loading branch information
ejj committed Sep 20, 2012
1 parent c6100d9 commit 4104aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vswitchd/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ bridge_init(const char *remote)
ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_fault_status);
ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_remote_mpids);
ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_health);
ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_cfm_remote_opstate);
ovsdb_idl_omit_alert(idl, &ovsrec_interface_col_lacp_current);
ovsdb_idl_omit(idl, &ovsrec_interface_col_external_ids);

Expand Down

0 comments on commit 4104aaf

Please sign in to comment.