MDEV-33213 fixup: GCC 5 -Wconversion

This commit is contained in:
Marko Mäkelä 2024-01-18 10:14:21 +02:00
parent 3a96eba25f
commit f63045b119

View File

@ -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;
}