src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java
/**
     * Resets all the segments, for testing purposes. DO NOT USE THIS OUTSIDE OF TESTS.
     */
Resets all the segments, for testing purposes. DO NOT USE THIS OUTSIDE OF TESTS.
Resets all the segments for testing purposes . DO NOT USE THIS OUTSIDE OF TESTS .
public void resetUnsafe()
    {
        logger.debug("Closing and clearing existing commit log segments...");
        while (!queue.isEmpty())
            Thread.yield();
        for (CommitLogSegment segment : activeSegments)
            segment.close();
        activeSegments.clear();
        availableSegments.clear();
    }
public void resetUnsafe ( ) { logger . debug ( "Closing and clearing existing commit log segments..." ) ; while ( ! queue . isEmpty ( ) ) Thread . yield ( ) ; for ( CommitLogSegment segment : activeSegments ) segment . close ( ) ; activeSegments . clear ( ) ; availableSegments . clear ( ) ; }
Resets all the segments, for testing purposes.
Resets all the segments for testing purposes .