mirror of https://github.com/apache/cassandra
prevent NPE when there is nothing to do
This commit is contained in:
parent
de0707432d
commit
c8c2044e40
|
|
@ -184,6 +184,9 @@ public class CompactionManager implements CompactionManagerMBean
|
|||
private void performAllSSTableOperation(final ColumnFamilyStore cfs, final AllSSTablesOperation operation) throws InterruptedException, ExecutionException
|
||||
{
|
||||
final Collection<SSTableReader> sstables = cfs.markAllCompacting();
|
||||
if (sstables == null)
|
||||
return;
|
||||
|
||||
Callable<Object> runnable = new Callable<Object>()
|
||||
{
|
||||
public Object call() throws IOException
|
||||
|
|
|
|||
Loading…
Reference in New Issue