question: public void checkReinitFile ( final boolean needReinit ) throws IOException { File bootModeFile = new File ( rootDir , Constants . STARTUPMODE ) ; if ( ! needReinit ) { log . info ( "Reinit flag is false" ) ; if ( bootModeFile . exists ( ) ) { bootModeFile . delete ( ) ; } return ; } if ( ! bootModeFile . exists ( ) ) { setDbStartupModeAsRestoreReinit ( rootDir ) ; } chown ( bootModeFile , BackupConstants . STORAGEOS_USER , BackupConstants . STORAGEOS_GROUP ) ; log . info ( "Startup mode file({}) has been created" , bootModeFile . getAbsolutePath ( ) ) ; }
target:  Checks reinit file according to argument needReinit