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.
parent dbba1bb1
......@@ -702,7 +702,7 @@ static dberr_t srv_all_undo_tablespaces_open(bool create_new_db, ulint n_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;
}
......
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