prevent NPE when there is nothing to do

This commit is contained in:
Jonathan Ellis 2013-03-22 19:52:52 -05:00
parent de0707432d
commit c8c2044e40
1 changed files with 3 additions and 0 deletions

View File

@ -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