]> git.proxmox.com Git - ovs.git/commit
ovsdb: Fix time in log traces when compacting database
authorDaniel Alvarez <dalvarez@redhat.com>
Wed, 7 Mar 2018 18:02:30 +0000 (19:02 +0100)
committerBen Pfaff <blp@ovn.org>
Wed, 7 Mar 2018 18:11:30 +0000 (10:11 -0800)
commitfa1663174929108fe37b089626f0077962f68a15
tree1ce88bb17da2710b7f03369f2f2294b72e231acc
parentb63ef95345cc1701b03683bf2d30df127ce4e231
ovsdb: Fix time in log traces when compacting database

Current code is mixing wall and monotonic clocks and the traces are not
useful since the timestamps are not accurate. This patch fixes it by
using the same time reference for the log as used in the code.

Without this patch, the traces look like this:
compacting database online (1519124364.908 seconds old, 951 transactions)

Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovsdb/file.c