fix infinite recompaction in L0

This commit is contained in:
Jonathan Ellis 2012-10-09 16:45:20 -05:00
parent 19c3bd3b3b
commit f34bd79b9a
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ public class LeveledManifest
candidates.addAll(overlapping(candidates, generations[1]));
}
return candidates;
return candidates.size() > 1 ? candidates : Collections.<SSTableReader>emptyList();
}
// for non-L0 compactions, pick up where we left off last time