Commit 23abc9d9 authored by Sunny Bains's avatar Sunny Bains

Remove code that was added during the flush list mutex refactoring. We cannot

release a dirty page in the middle of a mini-transaction. Replace the code
with an assertion that checks for this condition.

Original svn revision was: r6330.
parent 64bb9bbc
......@@ -337,9 +337,12 @@ mtr_memo_release(
slot = dyn_array_get_element(memo, offset);
if (object == slot->object && type == slot->type) {
if (mtr->modifications) {
mtr_memo_slot_note_modification(mtr, slot);
}
/* We cannot release a page that has been written
to in the middle of a mini-transaction. */
ut_ad(!(mtr->modifications
&& slot->type == MTR_MEMO_PAGE_X_FIX));
mtr_memo_slot_release(mtr, slot);
......
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