From f63045b11950c0659b7e3dcf66996be0422d76dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Thu, 18 Jan 2024 10:14:21 +0200 Subject: [PATCH] MDEV-33213 fixup: GCC 5 -Wconversion --- storage/innobase/trx/trx0purge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/trx/trx0purge.cc b/storage/innobase/trx/trx0purge.cc index 30cce66697f..7eaedabdd90 100644 --- a/storage/innobase/trx/trx0purge.cc +++ b/storage/innobase/trx/trx0purge.cc @@ -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; }