Skip to content

Commit 67f4ba2

Browse files
committed
MDEV-29996 Duplicated call to buf_page_t::set_ibuf_exist() on recovery
mlog_init_t::mark_ibuf_exist(): After applying the changes, invoke clear(). It turns out that multiple calls to recv_sys.apply(true) are possible during recovery. Therefore, we might redundantly invoke mlog_init_t::mark_ibuf_exist() multiple times. Starting with commit aaef2e1 the call buf_page_t::set_ibuf_exist() is not idempotent, because the flag is actually represented by 2 values of a 3-bit state field.
1 parent da21f3f commit 67f4ba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/log/log0recv.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@ class mlog_init_t
11481148
}
11491149

11501150
mtr.commit();
1151+
clear();
11511152
}
11521153

11531154
/** Clear the data structure */

0 commit comments

Comments
 (0)