We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0b1f16 commit e6da855Copy full SHA for e6da855
nitrite-fjall-adapter/src/store.rs
@@ -462,8 +462,9 @@ impl FjallStoreInner {
462
Ok(partition) => {
463
match ks.delete_partition(partition.clone()) {
464
Ok(_) => {
465
- // Ensure the map is removed from registry after successful deletion
466
- // This is defensive in case the map was re-opened between close_map and here
+ // Defensive cleanup: Ensure the map is removed from registry after successful deletion.
+ // This handles the unlikely race condition where the map might be re-opened
467
+ // by another thread after close_map() but before delete_partition() completes.
468
self.map_registry.remove(name);
469
Ok(())
470
}
0 commit comments