src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java
/**
     * Fetches an empty segment file.
     *
     * @return the next writable segment
     */
Fetches an empty segment file.
@return the next writable segment
Fetches an empty segment file . @return the next writable segment
public CommitLogSegment fetchSegment()
    {
        CommitLogSegment next;
        try
        {
            next = availableSegments.take();
        }
        catch (InterruptedException e)
        {
            throw new AssertionError(e);
        }
        assert !activeSegments.contains(next);
        activeSegments.add(next);
        if (isCapExceeded())
            flushOldestTables();
        return next;
    }
public CommitLogSegment fetchSegment ( ) { CommitLogSegment next ; try { next = availableSegments . take ( ) ; } catch ( InterruptedException e ) { throw new AssertionError ( e ) ; } assert ! activeSegments . contains ( next ) ; activeSegments . add ( next ) ; if ( isCapExceeded ( ) ) flushOldestTables ( ) ; return next ; }
Fetches an empty segment file.
Fetches an empty segment file .