Skip to content

Commit

Permalink
ovn-controller-vtep: Call binding_cleanup() before gateway_cleanup().
Browse files Browse the repository at this point in the history
Otherwise, binding_cleanup() will be a no-op since all related chassis
entries are deleted in gateway_cleanup().

Found by inspection.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
  • Loading branch information
yew011 committed Aug 18, 2015
1 parent d8e6570 commit ae4b913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovn/controller-vtep/ovn-controller-vtep.c
Expand Up @@ -124,8 +124,8 @@ main(int argc, char *argv[])

/* Run all of the cleanup functions, even if one of them returns false.
* We're done if all of them return true. */
done = gateway_cleanup(&ctx);
done = binding_cleanup(&ctx) && done;
done = binding_cleanup(&ctx);
done = gateway_cleanup(&ctx) && done;
if (done) {
poll_immediate_wake();
}
Expand Down

0 comments on commit ae4b913

Please sign in to comment.