Skip to content

Commit

Permalink
chore: implementing some suggestions from ai assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Jan 28, 2025
1 parent 59978e7 commit f1621b1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions engine/src/main/java/com/arcadedb/index/lsm/LSMTreeIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,16 @@ public void drop() {
return;

lock.executeInWriteLock(() -> {
final LSMTreeIndexCompacted subIndex = mutable.getSubIndex();
if (subIndex != null)
subIndex.drop();
try {
final LSMTreeIndexCompacted subIndex = mutable.getSubIndex();
if (subIndex != null)
subIndex.drop();

mutable.drop();

valid = false;

return null;
mutable.drop();
return null;
} finally {
valid = false;
}
});
}

Expand Down

0 comments on commit f1621b1

Please sign in to comment.