Skip to content

Commit 808f6bf

Browse files
author
Mohammad Tafzeel Shams
committed
Bug #36993445 : virtual index unstable after rollback when index_id is
greater than max uint32 Post-push Fix Change-Id: I1464e73be9ce6ff88104af38f497218825af2758
1 parent 6399635 commit 808f6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/dict/dict0boot.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ void dict_hdr_get_new_id(table_id_t *table_id, space_index_t *index_id,
130130
if (index_id) {
131131
id = mach_read_from_8(dict_hdr + DICT_HDR_INDEX_ID);
132132
id++;
133-
constexpr ib_id_t max_uint32 = 0xFFFFFFFF;
134133
DBUG_EXECUTE_IF(
135134
"simulate_index_id_exceed_uint32",
135+
constexpr ib_id_t max_uint32 = 0xFFFFFFFF;
136136
if (id < max_uint32) { id = max_uint32; });
137137
mlog_write_ull(dict_hdr + DICT_HDR_INDEX_ID, id, &mtr);
138138
*index_id = id;

0 commit comments

Comments
 (0)