Commit 5ba2aa1d authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-7962: Remove one more wsrep_on()

trx_rollback_to_savepoint(): Invoke trx_t::is_wsrep().
parent cfbbf542
......@@ -178,8 +178,7 @@ trx_rollback_to_savepoint(
complete rollback */
{
#ifdef WITH_WSREP
if (savept == NULL && wsrep_on(trx->mysql_thd)
&& wsrep_thd_is_SR(trx->mysql_thd)) {
if (!savept && trx->is_wsrep() && wsrep_thd_is_SR(trx->mysql_thd)) {
wsrep_handle_SR_rollback(NULL, trx->mysql_thd);
}
#endif /* WITH_WSREP */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment