fix: avoid to delete tree file when is not there anymore
@@ -246,8 +246,10 @@ public final class OSBTreeCollectionManagerShared
final long fileId = atomicOperation.fileIdByName(generateLockName(clusterId));
final int intFileId = OWOWCache.extractFileId(fileId);
final BTree bTree = fileIdBTreeMap.remove(intFileId);
+ if (bTree != null) {
bTree.delete(atomicOperation);
}
+ }
private BTreeBonsaiGlobal doCreateRidBag(OAtomicOperation atomicOperation, int clusterId) {
long fileId = atomicOperation.fileIdByName(generateLockName(clusterId));
