commit | b8073f3d2a9183f031a700142d313043feef62ae | [log] [tgz] |
---|---|---|
author | zheilbron <zheilbron@123451ca-8445-de46-9d55-352943316053> | Fri Jan 25 21:20:03 2013 +0000 |
committer | zheilbron <zheilbron@123451ca-8445-de46-9d55-352943316053> | Fri Jan 25 21:20:03 2013 +0000 |
tree | 1817edb17a4fd5ca86cdba97ed8e26412f314a0c | |
parent | 61a2442471fc74b995245e0722c68a688c344e4a [diff] |
fixed bug that caused merge operations not to cleanup merged components git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_lsm_tree@2707 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/LSMHarness.java b/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/LSMHarness.java index 9759322..d082a93 100644 --- a/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/LSMHarness.java +++ b/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/LSMHarness.java
@@ -202,6 +202,7 @@ List<ILSMComponent> mergedComponents = new ArrayList<ILSMComponent>(); operation.getCallback().beforeOperation(operation); ILSMComponent newComponent = lsmIndex.merge(mergedComponents, operation); + ctx.getComponentHolder().addAll(mergedComponents); operation.getCallback().afterOperation(operation, mergedComponents, newComponent); lsmIndex.markAsValid(newComponent); operation.getCallback().afterFinalize(operation, newComponent);