Commit f63045b1 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-33213 fixup: GCC 5 -Wconversion

parent 3a96eba2
......@@ -420,7 +420,7 @@ void purge_sys_t::rseg_enable(trx_rseg_t &rseg)
/* If innodb_undo_tablespaces>0, the rollback segment 0
(which always resides in the system tablespace) will
never be used; @see trx_assign_rseg_low() */
if (!(skipped%= TRX_SYS_N_RSEGS) && srv_undo_tablespaces)
if (!(skipped&= (TRX_SYS_N_RSEGS - 1)) && srv_undo_tablespaces)
skipped++;
skipped_rseg= skipped;
}
......
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