mirror of https://github.com/apache/cassandra
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:
parent
ec9f3d9c80
commit
440f0399b5
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue