Check weather ridbag component is created before deletion.
@@ -408,6 +408,7 @@ public class OSBTreeBonsaiLocal<K, V> extends ODurableComponent implements OSBTr
boolean rollback = false;
final OAtomicOperation atomicOperation = startAtomicOperation(true);
try {
+ if (isFileExists(atomicOperation, getFullName())) {
this.fileId = openFile(atomicOperation, getFullName());
final int treesCount;
@@ -427,6 +428,7 @@ public class OSBTreeBonsaiLocal<K, V> extends ODurableComponent implements OSBTr
}
deleteFile(atomicOperation, fileId);
+ }
} catch (Exception e) {
rollback = true;
throw e;
