src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
/**
     * Marks the ColumnFamily specified by cfId as clean for this log segment. If the
     * given context argument is contained in this file, it will only mark the CF as
     * clean if no newer writes have taken place.
     *
     * @param cfId    the column family ID that is now clean
     * @param context the optional clean offset
     */
Marks the ColumnFamily specified by cfId as clean for this log segment. If the
given context argument is contained in this file, it will only mark the CF as
clean if no newer writes have taken place.

@param cfId    the column family ID that is now clean
@param context the optional clean offset
Marks the ColumnFamily specified by cfId as clean for this log segment . If the given context argument is contained in this file it will only mark the CF as clean if no newer writes have taken place . @param cfId the column family ID that is now clean @param context the optional clean offset
public void markClean(Integer cfId, ReplayPosition context)
    {
        Integer lastWritten = cfLastWrite.get(cfId);
        if (lastWritten != null && (!contains(context) || lastWritten < context.position))
        {
            cfLastWrite.remove(cfId);
        }
    }
public void markClean ( Integer cfId , ReplayPosition context ) { Integer lastWritten = cfLastWrite . get ( cfId ) ; if ( lastWritten != null && ( ! contains ( context ) || lastWritten < context . position ) ) { cfLastWrite . remove ( cfId ) ; } }
Marks the ColumnFamily specified by cfId as clean for this log segment.
Marks the ColumnFamily specified by cfId as clean for this log segment .