summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-10-28 09:08:58 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-10-28 09:08:58 +0300
commitd8c6c53a0658ea8315252997f65d796b13182387 (patch)
tree26cb3a48c75fb94307ee564185b45fd7d94f80f7 /sql/slave.cc
parent1ad1d789815ddada89d8fb557a47a437d1ea21c2 (diff)
parenta8ded395578ccab9c256b9beee7e62d4ada08522 (diff)
downloadmariadb-git-d8c6c53a0658ea8315252997f65d796b13182387.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index e7aa0d4a510..5ff40d8fb25 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -4198,6 +4198,8 @@ static int exec_relay_log_event(THD* thd, Relay_log_info* rli,
#ifdef WITH_WSREP
if (wsrep_before_statement(thd))
{
+ mysql_mutex_unlock(&rli->data_lock);
+ delete ev;
WSREP_INFO("Wsrep before statement error");
DBUG_RETURN(1);
}