Removed redundant code.
git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_lsm_staging@3295 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks/hyracks-storage-am-lsm-btree/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/btree/impls/LSMBTreeFileManager.java b/hyracks/hyracks-storage-am-lsm-btree/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/btree/impls/LSMBTreeFileManager.java
index 8ef58b1..bbcee06 100644
--- a/hyracks/hyracks-storage-am-lsm-btree/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/btree/impls/LSMBTreeFileManager.java
+++ b/hyracks/hyracks-storage-am-lsm-btree/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/btree/impls/LSMBTreeFileManager.java
@@ -92,32 +92,6 @@
validateFiles(dev, btreeFilesSet, allBloomFilterFiles, bloomFilterFilter, null);
}
- // Gather files from all IODeviceHandles.
- for (IODeviceHandle dev : ioManager.getIODevices()) {
- cleanupAndGetValidFilesInternal(dev, bloomFilterFilter, null, allBloomFilterFiles);
- HashSet<String> bloomFilterFilesSet = new HashSet<String>();
- for (ComparableFileName cmpFileName : allBloomFilterFiles) {
- int index = cmpFileName.fileName.lastIndexOf(SPLIT_STRING);
- bloomFilterFilesSet.add(cmpFileName.fileName.substring(0, index));
- }
- // List of valid BTree files that may or may not have a bloom filter buddy. Will check for buddies below.
- ArrayList<ComparableFileName> tmpAllBTreeFiles = new ArrayList<ComparableFileName>();
- cleanupAndGetValidFilesInternal(dev, btreeFilter, btreeFactory, tmpAllBTreeFiles);
- // Look for buddy bloom filters for all valid BTrees.
- // If no buddy is found, delete the file, otherwise add the BTree to allBTreeFiles.
- for (ComparableFileName cmpFileName : tmpAllBTreeFiles) {
- int index = cmpFileName.fileName.lastIndexOf(SPLIT_STRING);
- String file = cmpFileName.fileName.substring(0, index);
- if (bloomFilterFilesSet.contains(file)) {
- allBTreeFiles.add(cmpFileName);
- } else {
- // Couldn't find the corresponding bloom filter file; thus, delete
- // the BTree file.
- File invalidBTreeFile = new File(cmpFileName.fullPath);
- invalidBTreeFile.delete();
- }
- }
- }
// Sanity check.
if (allBTreeFiles.size() != allBloomFilterFiles.size()) {
throw new HyracksDataException(