Fixed overly specific assertion.

This commit is contained in:
Sears Russell 2008-10-04 15:53:19 +00:00
parent a6a83b98a1
commit 82ec112788

View file

@ -21,8 +21,7 @@ void stasis_fixed_initialize_page(Page * page, size_t size, int count) {
static void checkRid(Page * page, recordid rid) {
assertlocked(page->rwlatch);
assert(*stasis_page_type_ptr(page) == FIXED_PAGE ||
*stasis_page_type_ptr(page) == ARRAY_LIST_PAGE);
assert(*stasis_page_type_ptr(page)); // any more specific breaks pages based on this one
assert(page->id == rid.page);
assert(*recordsize_ptr(page) == rid.size);
assert(stasis_fixed_records_per_page(rid.size) > rid.slot);