Skip to content

Commit a83bf17

Browse files
committed
Bug#32151601: ERROR MSG SEEMS WRONG IN INNODB_ALTER_UNDO_TABLESPACE_INACTIVE
Don't use a hard coded number in the error message Approved by Marcin in RB#25483
1 parent 5b27774 commit a83bf17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

storage/innobase/handler/ha_innodb.cc

+4-3
Original file line numberDiff line numberDiff line change
@@ -15577,10 +15577,11 @@ static int innodb_alter_undo_tablespace_inactive(handlerton *hton, THD *thd,
1557715577
auto count = fil_count_undo_deleted(undo_space->num());
1557815578
if (count > CONCURRENT_UNDO_TRUNCATE_LIMIT) {
1557915579
my_printf_error(ER_DISALLOWED_OPERATION,
15580-
"Cannot set %s inactive since there would be"
15581-
" more than 64 old versions of this undo tablespaces"
15580+
"Cannot set %s inactive since there would be more"
15581+
" than %zu old versions of this undo tablespace"
1558215582
" in cache. Please wait for the next checkpoint.",
15583-
MYF(0), undo_space->space_name());
15583+
MYF(0), undo_space->space_name(),
15584+
CONCURRENT_UNDO_TRUNCATE_LIMIT);
1558415585

1558515586
return (HA_ERR_NOT_ALLOWED_COMMAND);
1558615587
}

0 commit comments

Comments
 (0)