diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2022-04-01 13:29:31 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2022-04-01 13:29:31 +0300 |
commit | 49aee1a153a8401b0e8fc42bc73d7d42ab1be18d (patch) | |
tree | 80eb917b6bea383529bf6856fa8d43a3cbbfbf1f | |
parent | 1e859d4abcfd7e3b2c238e5dc8c909254661082a (diff) | |
download | mariadb-git-49aee1a153a8401b0e8fc42bc73d7d42ab1be18d.tar.gz |
MDEV-28210 : SIGSEGV in the test galera.galera_sst_rsync2bb-10.3-galera
We should make sure that wsrep exists before calling wsrep->post_rollback
-rw-r--r-- | sql/wsrep_hton.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/wsrep_hton.cc b/sql/wsrep_hton.cc index 05be257cbcb..1e302734df8 100644 --- a/sql/wsrep_hton.cc +++ b/sql/wsrep_hton.cc @@ -1,4 +1,4 @@ -/* Copyright 2008-2015 Codership Oy <http://www.codership.com> +/* Copyright 2008-2022 Codership Oy <http://www.codership.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -155,7 +155,7 @@ void wsrep_post_commit(THD* thd, bool all) */ if (all && thd->wsrep_conflict_state != MUST_REPLAY && thd->wsrep_conflict_state != REPLAYING && - wsrep->post_rollback(wsrep, &thd->wsrep_ws_handle)) + wsrep && wsrep->post_rollback(wsrep, &thd->wsrep_ws_handle)) { WSREP_WARN("post_rollback fail: %llu %d", (long long)thd->thread_id, thd->get_stmt_da()->status()); |