commit | 8e74f38d69b220a69973828afe7080c1bb192959 | [log] [tgz] |
---|---|---|
author | zheilbron <zheilbron@123451ca-8445-de46-9d55-352943316053> | Tue Sep 04 20:07:16 2012 +0000 |
committer | zheilbron <zheilbron@123451ca-8445-de46-9d55-352943316053> | Tue Sep 04 20:07:16 2012 +0000 |
tree | 001b52bff992175f99397a32e7d2439eaaf53076 | |
parent | 444f1124520472111a630fc9f45f0dd23303366c [diff] |
changed lifecycle manager to account for memory decrease only if deactivate succeeds git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_lsm_tree@1875 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java b/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java index bec823d..24e6bfd 100644 --- a/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java +++ b/hyracks-storage-am-common/src/main/java/edu/uci/ics/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java
@@ -66,8 +66,8 @@ } if (info.isOpen) { - memoryUsed -= info.index.getInMemorySize(); info.index.deactivate(); + memoryUsed -= info.index.getInMemorySize(); } }