src/java/org/apache/cassandra/db/DataTracker.java
/**
     * Renew the current memtable without putting the old one for a flush.
     * Used when we flush but a memtable is clean (in which case we must
     * change it because it was frozen).
     */
Renew the current memtable without putting the old one for a flush.
Used when we flush but a memtable is clean (in which case we must
change it because it was frozen).
Renew the current memtable without putting the old one for a flush . Used when we flush but a memtable is clean ( in which case we must change it because it was frozen ) .
public void renewMemtable()
    {
        Memtable newMemtable = new Memtable(cfstore);
        View currentView, newView;
        do
        {
            currentView = view.get();
            newView = currentView.renewMemtable(newMemtable);
        }
        while (!view.compareAndSet(currentView, newView));
    }
public void renewMemtable ( ) { Memtable newMemtable = new Memtable ( cfstore ) ; View currentView , newView ; do { currentView = view . get ( ) ; newView = currentView . renewMemtable ( newMemtable ) ; } while ( ! view . compareAndSet ( currentView , newView ) ) ; }
Renew the current memtable without putting the old one for a flush.
Renew the current memtable without putting the old one for a flush .