769770771772773774775776777778779
// make sure only 1 thread can create a segment at one time synchronized(dataFactory) { if (!directory.exists()) { if (!directory.mkdirs()) { if (errorOK) { return null; }
9293949596979899100101102
canonicalHome = relativeRoot.getCanonicalPath(); rootStorageFactory = getStorageFactoryInstance( true, null, null, null); if( home != null) { StorageFile rootDir = rootStorageFactory.newStorageFile( null); rootDir.mkdirs(); } return null; } } );
664665666667668669670671672673674
throw StandardException.newException(SQLState.SERVICE_DIRECTORY_EXISTS_ERROR, getDirectoryPath( name)); } } if (serviceDirectory.mkdirs()) { try { return storageFactory.getCanonicalName(); }
93949596979899100101102103
673674675676677678679680681682683
else throw StandardException.newException(SQLState.SERVICE_DIRECTORY_EXISTS_ERROR, getDirectoryPath( name)); } if (serviceDirectory.mkdirs()) { try { return storageFactory.getCanonicalName(); }
9596979899100101102103104105
tran.blockBackup(true); StorageFile directory = file.getParentDir(); if (!directory.exists()) { if (!directory.mkdirs()) { throw StandardException.newException( SQLState.FILE_CANNOT_CREATE_SEGMENT, directory); } }
869870871872873874875876877878879
674675676677678679680681682683684