fix: make sure to release lock on close of failed storage
@@ -5800,9 +5800,6 @@ public abstract class OAbstractPaginatedStorage extends OStorageAbstract
writeAheadLog.close();
}
- postCloseSteps(onDelete, isInError(), idGen.getLastId());
- transaction = null;
- lastMetadata = null;
} else {
OLogManager.instance()
.errorNoDb(
@@ -5810,6 +5807,9 @@ public abstract class OAbstractPaginatedStorage extends OStorageAbstract
"Because of JVM error happened inside of storage it can not be properly closed",
null);
}
+ postCloseSteps(onDelete, isInError(), idGen.getLastId());
+ transaction = null;
+ lastMetadata = null;
status = STATUS.CLOSED;
} catch (final IOException e) {
