commit | 78c02ff4bef94a9cb69eca6cae4085105b1aef68 | [log] [tgz] |
---|---|---|
author | alexander.behm <alexander.behm@123451ca-8445-de46-9d55-352943316053> | Wed Mar 23 18:39:34 2011 +0000 |
committer | alexander.behm <alexander.behm@123451ca-8445-de46-9d55-352943316053> | Wed Mar 23 18:39:34 2011 +0000 |
tree | 6ce0ecb976fb2f09e7ac5698ed0584617742a92b | |
parent | f4d42c45ef2bc1eccf2e428685fbb79c3b3f66f9 [diff] |
Fixed btree file enlistment bug. git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_indexes@379 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/BTreeOpHelper.java b/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/BTreeOpHelper.java index 8009a407..eeea95f 100644 --- a/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/BTreeOpHelper.java +++ b/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/BTreeOpHelper.java
@@ -123,12 +123,12 @@ if (mode == BTreeMode.CREATE_BTREE) { ITreeIndexMetaDataFrame metaFrame = new LIFOMetaDataFrame(); try { - btree.create(btreeFileId, leafFrame, metaFrame); - btree.open(btreeFileId); + btree.create(btreeFileId, leafFrame, metaFrame); } catch (Exception e) { throw new HyracksDataException(e); } } + btree.open(btreeFileId); btreeRegistry.register(btreeFileId, btree); } } finally {