added missing case to allocationPolicy
This commit is contained in:
parent
b25d77f05c
commit
68e947fb6d
1 changed files with 3 additions and 0 deletions
|
@ -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]))) {
|
|| (xidAllocCount == 1 && xidDeallocCount == 1 && ap->reuseWithinXact && (allocXids[0] == deallocXids[0]))) {
|
||||||
pageOwners_add(ap, allocXids[0], freespace, pageid);
|
pageOwners_add(ap, allocXids[0], freespace, pageid);
|
||||||
availablePages_remove(ap, pageid);
|
availablePages_remove(ap, pageid);
|
||||||
|
} else if ((xidAllocCount ==0 && xidDeallocCount == 1)) {
|
||||||
|
pageOwners_add(ap, deallocXids[0], freespace, pageid);
|
||||||
|
availablePages_remove(ap, pageid);
|
||||||
} else {
|
} else {
|
||||||
pageOwners_remove(ap, pageid);
|
pageOwners_remove(ap, pageid);
|
||||||
availablePages_remove(ap, pageid);
|
availablePages_remove(ap, pageid);
|
||||||
|
|
Loading…
Reference in a new issue