src/java/org/apache/cassandra/db/DataTracker.java
/**
     * removes all sstables that are not busy compacting.
     */
removes all sstables that are not busy compacting.
removes all sstables that are not busy compacting .
public void unreferenceSSTables()
    {
        Set<SSTableReader> notCompacting;
        View currentView, newView;
        do
        {
            currentView = view.get();
            notCompacting = currentView.nonCompactingSStables();
            newView = currentView.replace(notCompacting, Collections.<SSTableReader>emptySet());
        }
        while (!view.compareAndSet(currentView, newView));
        if (notCompacting.isEmpty())
        {
            return;
        }
        notifySSTablesChanged(notCompacting, Collections.<SSTableReader>emptySet());
        postReplace(notCompacting, Collections.<SSTableReader>emptySet());
    }
public void unreferenceSSTables ( ) { Set < SSTableReader > notCompacting ; View currentView , newView ; do { currentView = view . get ( ) ; notCompacting = currentView . nonCompactingSStables ( ) ; newView = currentView . replace ( notCompacting , Collections . < SSTableReader > emptySet ( ) ) ; } while ( ! view . compareAndSet ( currentView , newView ) ) ; if ( notCompacting . isEmpty ( ) ) { return ; } notifySSTablesChanged ( notCompacting , Collections . < SSTableReader > emptySet ( ) ) ; postReplace ( notCompacting , Collections . < SSTableReader > emptySet ( ) ) ; }
removes all sstables that are not busy compacting.
removes all sstables that are not busy compacting .
// notifySSTablesChanged -> LeveledManifest.promote doesn't like a no-op "promotion"