MDEV-31851 After crash recovery, undo tablespace fails to open

srv_all_undo_tablespaces_open(): While opening the extra unused
undo tablespaces, InnoDB should use ULINT_UNDEFINED instead of
SRV_SPACE_ID_UPPER_BOUND.
This commit is contained in:
Thirunarayanan Balathandayuthapani 2023-10-19 15:39:44 +05:30
parent dbba1bb1c3
commit 85751ed81d

View file

@ -702,7 +702,7 @@ unused_undo:
snprintf(name, sizeof(name),
"%s%cundo%03zu", srv_undo_dir, OS_PATH_SEPARATOR, i);
ulint space_id= srv_undo_tablespace_open(create_new_db, name, i);
if (!space_id || space_id == SRV_SPACE_ID_UPPER_BOUND)
if (!space_id || space_id == ULINT_UNDEFINED)
break;
++srv_undo_tablespaces_open;
}