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);
|
my_error(ER_ERROR_DURING_ROLLBACK, MYF(0), err);
|
||||||
error=1;
|
error=1;
|
||||||
#ifdef WITH_WSREP
|
#ifdef WITH_WSREP
|
||||||
WSREP_WARN("handlerton rollback failed, thd %lld %lld "
|
if (WSREP(thd))
|
||||||
"conf %d wsrep_err %s SQL %s",
|
{
|
||||||
thd->thread_id, thd->query_id, thd->wsrep_trx().state(),
|
WSREP_WARN("handlerton rollback failed, thd %lld %lld "
|
||||||
wsrep::to_c_string(thd->wsrep_cs().current_error()),
|
"conf %d wsrep_err %s SQL %s",
|
||||||
thd->query());
|
thd->thread_id, thd->query_id, thd->wsrep_trx().state(),
|
||||||
|
wsrep::to_c_string(thd->wsrep_cs().current_error()),
|
||||||
|
thd->query());
|
||||||
|
}
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
}
|
}
|
||||||
status_var_increment(thd->status_var.ha_rollback_count);
|
status_var_increment(thd->status_var.ha_rollback_count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user