MDEV-35852 : ASAN heap-use-after-free in WSREP_DEBUG after INSERT DELAYED
Post-fix: remove unnecessary warning messages when wrep is not used.
This commit is contained in:
parent
43c36b3c88
commit
d32ec7d48e
@ -2158,11 +2158,14 @@ int ha_rollback_trans(THD *thd, bool all)
|
||||
my_error(ER_ERROR_DURING_ROLLBACK, MYF(0), err);
|
||||
error=1;
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_WARN("handlerton rollback failed, thd %lld %lld "
|
||||
"conf %d wsrep_err %s SQL %s",
|
||||
thd->thread_id, thd->query_id, thd->wsrep_trx().state(),
|
||||
wsrep::to_c_string(thd->wsrep_cs().current_error()),
|
||||
thd->query());
|
||||
if (WSREP(thd))
|
||||
{
|
||||
WSREP_WARN("handlerton rollback failed, thd %lld %lld "
|
||||
"conf %d wsrep_err %s SQL %s",
|
||||
thd->thread_id, thd->query_id, thd->wsrep_trx().state(),
|
||||
wsrep::to_c_string(thd->wsrep_cs().current_error()),
|
||||
thd->query());
|
||||
}
|
||||
#endif /* WITH_WSREP */
|
||||
}
|
||||
status_var_increment(thd->status_var.ha_rollback_count);
|
||||
|
Loading…
x
Reference in New Issue
Block a user