use of com.orientechnologies.orient.core.exception.OHashTableDirectoryException in project orientdb by orientechnologies.
the class OHashTableDirectory method create.
public void create() throws IOException {
startOperation();
try {
OAtomicOperation atomicOperation = startAtomicOperation(false);
acquireExclusiveLock();
try {
fileId = addFile(atomicOperation, getFullName());
init();
endAtomicOperation(false, null);
} catch (IOException e) {
endAtomicOperation(true, e);
throw e;
} catch (Exception e) {
endAtomicOperation(true, e);
throw OException.wrapException(new OHashTableDirectoryException("Error during creation of hash table", this), e);
} finally {
releaseExclusiveLock();
}
} finally {
completeOperation();
}
}
Aggregations