Browse Source

Fix time accounting for the maintenance thread

It won't make much difference but we're accounting the time of
the log which should be insignificant compared to the duration
of the maintenance task. Still, it's best to stop the timer
before that just in case.

Change-Id: Ic939d73e7ce9e694ff2e501ab967d619874e7eea
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
changes/27/540927/1
Daniel Alvarez 4 years ago
parent
commit
01291d3c8a
  1. 2
      networking_ovn/common/maintenance.py

2
networking_ovn/common/maintenance.py

@ -250,9 +250,9 @@ class DBInconsistenciesPeriodics(object):
{'res_uuid': row.resource_uuid,
'res_type': row.resource_type})
self._sync_timer.stop()
LOG.info('Maintenance thread synchronization finished '
'(took %.2f seconds)', self._sync_timer.elapsed())
self._sync_timer.stop()
def _create_lrouter_port(self, port):
admin_context = n_context.get_admin_context()

Loading…
Cancel
Save