avoid attempting to delete compacted sstables twice on restart

patch by jbellis to fix regression introduced by CASSANDRA-1736

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1037101 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2010-11-20 01:23:37 +00:00
parent ec9f3d9c80
commit 440f0399b5
1 changed files with 3 additions and 0 deletions

View File

@ -462,7 +462,10 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
Set<Component> components = sstableFiles.getValue();
if (components.contains(Component.COMPACTED_MARKER) || desc.temporary)
{
SSTable.delete(desc, components);
continue;
}
File dataFile = new File(desc.filenameFor(Component.DATA));
if (components.contains(Component.DATA) && dataFile.length() > 0)