ovn-northd: Only run idl loop if something changed.
authorJoe Stringer <joe@ovn.org>
Fri, 4 Dec 2015 01:11:49 +0000 (17:11 -0800)
committerJustin Pettit <jpettit@ovn.org>
Fri, 4 Dec 2015 07:02:39 +0000 (23:02 -0800)
commitf20396e051ea4fd623bfc022cc78d9bd52a850e5
tree700090f9d1ba830ea9168ece0568c68c9be29c30
parent47fe8a1d402a9b60bc645a6be9d03210aa1ad385
ovn-northd: Only run idl loop if something changed.

Before refactoring the main loop to reuse ovsdb_idl_loop_* functions, we
would use a sequence to see if anything changed in NB database to
compute and notify the SB database, and vice versa. This logic got
dropped with the refactor, causing a testsuite failure in the ovn-sbctl
test. Reintroduce the IDL sequence number checking.

Fixes: 331e7aefe1c6 ("ovn-northd: Refactor main loop to use ovsdb_idl_loop_*
functions")
Suggested-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Tested-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Acked-by: Ben Pfaff <blp@ovn.org>
ovn/northd/ovn-northd.c