Skip to content

Commit

Permalink
northd.c: Fix nbcfg timestamp - use time_wall_msec instead of time_msec.
Browse files Browse the repository at this point in the history
ovn-nbctl --print-wait-time is now broken due to this bug.
E.g.:
$ ovn-nbctl --wait=hv --print-wait-time sync
Time spent on processing nb_cfg 1:
	ovn-northd delay before processing:	-1643828314999ms
	ovn-northd completion:			-1643828314998ms
	ovn-controller(s) completion:		3ms

Fixes: b44f637 ("northd: Do not calculate database sequence numbers incrementally")
Signed-off-by: Han Zhou <hzhou@ovn.org>
Acked-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
hzhou8 committed Feb 9, 2022
1 parent c263ae6 commit 06d677b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion northd/ovn-northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ main(int argc, char *argv[])
}

if (ovsdb_idl_has_lock(ovnsb_idl_loop.idl)) {
int64_t loop_start_time = time_msec();
int64_t loop_start_time = time_wall_msec();
inc_proc_northd_run(ovnnb_txn, ovnsb_txn, recompute);
recompute = false;
if (ovnsb_txn) {
Expand Down

0 comments on commit 06d677b

Please sign in to comment.