Commit 553d8175 authored by Marko Mäkelä's avatar Marko Mäkelä

page_copy_rec_list_end_to_created_page(): Use page_ptr_set_direction()

Only page_create_low() and PageBulk::finish() are entitled to reset
PAGE_INSTANT. page_copy_rec_list_end_to_created_page() may be invoked
on the root page, where PAGE_INSTANT would be set.
parent 6e82d5b4
......@@ -2175,7 +2175,8 @@ page_copy_rec_list_end_to_created_page(
*reinterpret_cast<uint16_t*>(PAGE_HEADER + PAGE_LAST_INSERT + new_page)
= 0;
new_page[PAGE_HEADER + PAGE_DIRECTION_B] = PAGE_NO_DIRECTION;
page_ptr_set_direction(PAGE_HEADER + PAGE_DIRECTION_B + new_page,
PAGE_NO_DIRECTION);
*reinterpret_cast<uint16_t*>(PAGE_HEADER + PAGE_N_DIRECTION + new_page)
= 0;
}
......
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