From 68e947fb6d6180ad4e28ed55ce9251f44b49e69e Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Fri, 7 Aug 2009 17:26:40 +0000 Subject: [PATCH] added missing case to allocationPolicy --- src/stasis/allocationPolicy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stasis/allocationPolicy.c b/src/stasis/allocationPolicy.c index 21fbfa1..e9e38cf 100644 --- a/src/stasis/allocationPolicy.c +++ b/src/stasis/allocationPolicy.c @@ -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);