Commit 833c4543 authored by marko's avatar marko

branches/zip: lock_update_discard(): Fix a bug introduced in r949:

Compare heap_no against PAGE_HEAP_NO_SUPREMUM instead of
PAGE_NEW_SUPREMUM or PAGE_OLD_SUPREMUM.
parent 952775dc
...@@ -3217,7 +3217,7 @@ lock_update_discard( ...@@ -3217,7 +3217,7 @@ lock_update_discard(
lock_rec_reset_and_release_wait(block, heap_no); lock_rec_reset_and_release_wait(block, heap_no);
rec = page + rec_get_next_offs(rec, TRUE); rec = page + rec_get_next_offs(rec, TRUE);
} while (heap_no != PAGE_NEW_SUPREMUM); } while (heap_no != PAGE_HEAP_NO_SUPREMUM);
} else { } else {
rec = page + PAGE_OLD_INFIMUM; rec = page + PAGE_OLD_INFIMUM;
...@@ -3230,7 +3230,7 @@ lock_update_discard( ...@@ -3230,7 +3230,7 @@ lock_update_discard(
lock_rec_reset_and_release_wait(block, heap_no); lock_rec_reset_and_release_wait(block, heap_no);
rec = page + rec_get_next_offs(rec, FALSE); rec = page + rec_get_next_offs(rec, FALSE);
} while (heap_no != PAGE_OLD_SUPREMUM); } while (heap_no != PAGE_HEAP_NO_SUPREMUM);
} }
lock_rec_free_all_from_discard_page(block); lock_rec_free_all_from_discard_page(block);
......
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