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

Jakub Sitnicki jkbs at redhat.com
Thu Jul 19 12:36:18 UTC 2018


If transaction succeeded reset the state. Otherwise nbctl_exit()
callback will try to clean up on any fatal error.

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

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;
-- 
2.14.4



More information about the dev mailing list