src/java/org/apache/cassandra/db/commitlog/CommitLog.java
/**
     * Forces a new segment file to be allocated and activated. Used mainly by truncate. 
     */
Forces a new segment file to be allocated and activated. Used mainly by truncate.
Forces a new segment file to be allocated and activated . Used mainly by truncate .
public void forceNewSegment() throws ExecutionException, InterruptedException
    {
        logger.debug("Forcing new segment creation");
        Callable<?> task = new Callable()
        {
            public Object call() throws IOException
            {
                if (activeSegment.position() > 0)
                    activateNextSegment();
                return null;
            }
        };
        executor.submit(task).get();
    }
public void forceNewSegment ( ) throws ExecutionException , InterruptedException { logger . debug ( "Forcing new segment creation" ) ; Callable < ? > task = new Callable ( ) { public Object call ( ) throws IOException { if ( activeSegment . position ( ) > 0 ) activateNextSegment ( ) ; return null ; } } ; executor . submit ( task ) . get ( ) ; }
Forces a new segment file to be allocated and activated.
Forces a new segment file to be allocated and activated .