src/java/org/apache/cassandra/db/ColumnFamilyStore.java
/**
     * @return a ViewFragment containing the sstables and memtables that may need to be merged
     * for the given @param key, according to the interval tree
     */
@return a ViewFragment containing the sstables and memtables that may need to be merged
for the given @param key, according to the interval tree
@return a ViewFragment containing the sstables and memtables that may need to be merged for the given @param key according to the interval tree
public ViewFragment markReferenced(DecoratedKey key)
    {
        assert !key.isMinimum();
        DataTracker.View view;
        List<SSTableReader> sstables;
        while (true)
        {
            view = data.getView();
            sstables = view.intervalTree.search(new Interval(key, key));
            if (SSTableReader.acquireReferences(sstables))
                break;
        }
        return new ViewFragment(sstables, Iterables.concat(Collections.singleton(view.memtable), view.memtablesPendingFlush));
    }
public ViewFragment markReferenced ( DecoratedKey key ) { assert ! key . isMinimum ( ) ; DataTracker . View view ; List < SSTableReader > sstables ; while ( true ) { view = data . getView ( ) ; sstables = view . intervalTree . search ( new Interval ( key , key ) ) ; if ( SSTableReader . acquireReferences ( sstables ) ) break ; } return new ViewFragment ( sstables , Iterables . concat ( Collections . singleton ( view . memtable ) , view . memtablesPendingFlush ) ) ; }
@return a ViewFragment containing the sstables and memtables that may need to be merged
 for the given @param key, according to the interval tree
@return a ViewFragment containing the sstables and memtables that may need to be merged for the given @param key according to the interval tree
// retry w/ new view