public JournalFile takeFile(final boolean keepOpened,final boolean multiAIO,final boolean initFile,final boolean tmpCompactExtension) throws Exception {
  JournalFile nextFile=null;
  nextFile=freeFiles.poll();
  if (nextFile != null) {
    freeFilesCount.getAndDecrement();
  }
  if (nextFile == null) {
    nextFile=createFile(keepOpened,multiAIO,initFile,tmpCompactExtension,-1);
  }
 else {
    if (tmpCompactExtension) {
      SequentialFile sequentialFile=nextFile.getFile();
      sequentialFile.renameTo(sequentialFile.getFileName() + ".cmp");
    }
    if (keepOpened) {
      openFile(nextFile,multiAIO);
    }
  }
  return nextFile;
}

public JournalFile takeFile ( final boolean keepOpened , final boolean multiAIO , final boolean initFile , final boolean tmpCompactExtension ) throws Exception { JournalFile nextFile = null ; nextFile = freeFiles . poll ( ) ; if ( nextFile != null ) { freeFilesCount . getAndDecrement ( ) ; } if ( nextFile == null ) { nextFile = createFile ( keepOpened , multiAIO , initFile , tmpCompactExtension , - 1 ) ; } else { if ( tmpCompactExtension ) { SequentialFile sequentialFile = nextFile . getFile ( ) ; sequentialFile . renameTo ( sequentialFile . getFileName ( ) + ".cmp" ) ; } if ( keepOpened ) { openFile ( nextFile , multiAIO ) ; } } return nextFile ; }
this will get a file from freefile without initializing it
