Skip to content

Commit

Permalink
Ninja: do not submit compactions after flush of empty memtable (reins…
Browse files Browse the repository at this point in the history
…tate pre-#14081 behavior)
  • Loading branch information
pauloricardomg committed Dec 11, 2017
1 parent f8801ca commit 8547f74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/org/apache/cassandra/db/ColumnFamilyStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,8 @@ public void markObsolete(Collection<SSTableReader> sstables, OperationType compa
void replaceFlushed(Memtable memtable, Collection<SSTableReader> sstables)
{
data.replaceFlushed(memtable, sstables);
CompactionManager.instance.submitBackground(this);
if (sstables != null && !sstables.isEmpty())
CompactionManager.instance.submitBackground(this);
}

public boolean isValid()
Expand Down

0 comments on commit 8547f74

Please sign in to comment.