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

Jakub Sitnicki jkbs at redhat.com
Thu Jul 19 13:51:12 UTC 2018


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