added missing case to allocationPolicy

This commit is contained in:
Sears Russell 2009-08-07 17:26:40 +00:00
parent b25d77f05c
commit 68e947fb6d

View file

@ -306,6 +306,9 @@ static int update_views_for_page(stasis_allocation_policy_t *ap, pageid_t pageid
|| (xidAllocCount == 1 && xidDeallocCount == 1 && ap->reuseWithinXact && (allocXids[0] == deallocXids[0]))) {
pageOwners_add(ap, allocXids[0], freespace, pageid);
availablePages_remove(ap, pageid);
} else if ((xidAllocCount ==0 && xidDeallocCount == 1)) {
pageOwners_add(ap, deallocXids[0], freespace, pageid);
availablePages_remove(ap, pageid);
} else {
pageOwners_remove(ap, pageid);
availablePages_remove(ap, pageid);