From 1ca3f7b649b202bfc3e121da5fcb56c77d849567 Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Thu, 14 Jun 2018 15:11:56 +0300 Subject: [PATCH] Don't release ws_handle_ for replaying before commit order enter. --- src/transaction_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction_context.cpp b/src/transaction_context.cpp index 5a7a439..8cb90c1 100644 --- a/src/transaction_context.cpp +++ b/src/transaction_context.cpp @@ -514,6 +514,7 @@ int wsrep::transaction_context::after_statement() switch (replay_ret) { case wsrep::provider::success: + provider_.release(ws_handle_); break; case wsrep::provider::error_certification_failed: client_context_.override_error( @@ -530,7 +531,6 @@ int wsrep::transaction_context::after_statement() wsrep::log_info() << "Replay ret " << replay_ret; state(lock, s_aborted); } - provider_.release(ws_handle_); break; } case s_aborted: