mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
MDEV-28210 : SIGSEGV in the test galera.galera_sst_rsync2
We should make sure that wsrep exists before calling wsrep->post_rollback
This commit is contained in:
parent
1e859d4abc
commit
49aee1a153
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue