commit | 7d554fcb259e128c077a62b57728c069f50871b3 | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Wed Mar 22 20:12:17 2017 -0700 |
committer | Michael Blow <mblow@apache.org> | Wed Mar 22 22:05:13 2017 -0700 |
tree | 250e5aa9c684a076492797c10dfad98be880a5f7 | |
parent | e791206fbe7e9ac0cbd4b45090bffccd811175ab [diff] |
Decrement Large Pages When Releasing From VBC Change-Id: Ic61951fdc48f501d8b006f89f5d77791cd072ae3 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1610 Reviewed-by: Ian Maxon <imaxon@apache.org> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/VirtualBufferCache.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/VirtualBufferCache.java index fce0b74..27d879c 100644 --- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/VirtualBufferCache.java +++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/VirtualBufferCache.java
@@ -105,6 +105,9 @@ VirtualPage curr = bucket.cachedPage; while (curr != null) { if (BufferedFileHandle.getFileId(curr.dpid()) == fileId) { + if (curr.getFrameSizeMultiplier() > 1) { + largePages.getAndAdd(-curr.getFrameSizeMultiplier()); + } if (prev == null) { bucket.cachedPage = curr.next(); curr.reset();