src/java/org/apache/cassandra/io/sstable/SSTableReader.java
/**
     * Mark the sstable as compacted.
     * When calling this function, the caller must ensure that the SSTableReader is not referenced anywhere
     * except for threads holding a reference.
     *
     * @return true if the this is the first time the file was marked compacted.  With rare exceptions
     * (see DataTracker.unmarkCompacted) calling this multiple times would be buggy.
     */
Mark the sstable as compacted.
When calling this function, the caller must ensure that the SSTableReader is not referenced anywhere
except for threads holding a reference.

@return true if the this is the first time the file was marked compacted.  With rare exceptions
calling this multiple times would be buggy.
Mark the sstable as compacted . When calling this function the caller must ensure that the SSTableReader is not referenced anywhere except for threads holding a reference . @return true if the this is the first time the file was marked compacted . With rare exceptions calling this multiple times would be buggy .
public boolean markCompacted()
    {
        if (logger.isDebugEnabled())
            logger.debug("Marking " + getFilename() + " compacted");
        if (isCompacted.getAndSet(true))
            return false;
        try
        {
            if (!new File(descriptor.filenameFor(Component.COMPACTED_MARKER)).createNewFile())
                throw new IOException("Compaction marker already exists");
        }
        catch (IOException e)
        {
            throw new IOError(e);
        }
        return true;
    }
public boolean markCompacted ( ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "Marking " + getFilename ( ) + " compacted" ) ; if ( isCompacted . getAndSet ( true ) ) return false ; try { if ( ! new File ( descriptor . filenameFor ( Component . COMPACTED_MARKER ) ) . createNewFile ( ) ) throw new IOException ( "Compaction marker already exists" ) ; } catch ( IOException e ) { throw new IOError ( e ) ; } return true ; }
Mark the sstable as compacted.
Mark the sstable as compacted .