diff mbox series

[ovs-dev,v5,07/21] ovn-nbctl: Don't destroy the transaction twice on error.

Message ID 20180719135126.19636-8-jkbs@redhat.com
State Accepted
Headers show
Series Daemon mode for ovn-nbctl | expand

Commit Message

Jakub Sitnicki July 19, 2018, 1:51 p.m. UTC
Reset the global state, if transaction succeeded. Otherwise nbctl_exit()
callback will try to clean up on any fatal error.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
---
 ovn/utilities/ovn-nbctl.c | 1 +
 1 file changed, 1 insertion(+)

--
2.14.4
diff mbox series

Patch

diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c
index 360b25a89..25194b2fa 100644
--- a/ovn/utilities/ovn-nbctl.c
+++ b/ovn/utilities/ovn-nbctl.c
@@ -4307,6 +4307,7 @@  do_nbctl(const char *args, struct ctl_command *commands, size_t n_commands,
     }

     ovsdb_idl_txn_destroy(txn);
+    the_idl_txn = NULL;

     *retry = false;
     return;