Specify query operations

This commit is contained in:
leventov
2016-02-28 21:33:31 +07:00
parent dc4b578bef
commit f2ccfca801
5 changed files with 474 additions and 5 deletions
@@ -684,6 +684,8 @@ public abstract class SegmentStages implements SegmentLock, LocksInterface {
if (fromPos + newChunks < hh.h().actualChunksPerSegmentTier &&
freeList.isRangeClear(fromPos + oldChunks, fromPos + newChunks)) {
freeList.setRange(fromPos + oldChunks, fromPos + newChunks);
// checking and updating lowestPossiblyFreeChunk is omitted because adds computational
// complexity for seemingly very small gain
return true;
} else {
return false;