Commit fb70990c authored by unknown's avatar unknown

btr0pcur.c Fix a bug in persistent cursor restoration: this could cause...

btr0pcur.c	Fix a bug in persistent cursor restoration: this could cause crashes especially if the buffer pool is small


innobase/btr/btr0pcur.c:
  Fix a bug in persistent cursor restoration: this could cause crashes especially if the buffer pool is small
parent 47950088
......@@ -246,6 +246,12 @@ btr_pcur_restore_position(
&& btr_pcur_is_on_user_rec(cursor, mtr)
&& (0 == cmp_dtuple_rec(tuple, btr_pcur_get_rec(cursor)))) {
/* We have to store the NEW value for the modify clock, since
the cursor can now be on a different page! */
cursor->modify_clock = buf_frame_get_modify_clock(
buf_frame_align(
btr_pcur_get_rec(cursor)));
mem_heap_free(heap);
return(TRUE);
......
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