commit | 14eab7239f1168bc63b6552d1c44f5de32def7e1 | [log] [tgz] |
---|---|---|
author | salsubaiee <salsubaiee@gmail.com> | Thu Jul 25 03:09:02 2013 -0700 |
committer | salsubaiee <salsubaiee@gmail.com> | Wed Aug 14 21:02:52 2013 -0700 |
tree | 4b959406a19421f84cd26d6f091ccf70916753b8 | |
parent | ac8992e5a0443731bfb3014753b08e1586e31de7 [diff] |
Fix a hidden bug that was surfaced after fixing issue 574: don't flush indexes that has not been opened yet.
diff --git a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/DatasetLifecycleManager.java b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/DatasetLifecycleManager.java index 7232f01..97b9346 100644 --- a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/DatasetLifecycleManager.java +++ b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/DatasetLifecycleManager.java
@@ -245,7 +245,9 @@ } Set<ILSMIndex> datasetIndexes = new HashSet<ILSMIndex>(); for (IndexInfo iInfo : dsInfo.indexes.values()) { - datasetIndexes.add(iInfo.index); + if (iInfo.isOpen) { + datasetIndexes.add(iInfo.index); + } } return datasetIndexes; }