mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
fix cache lock
This commit is contained in:
@@ -102,8 +102,10 @@ public class CachingObjectPersistentStore {
|
||||
public void commitTx(TxManifest names) {
|
||||
// During commit, readObject shouldn't be called for these items,
|
||||
// it should be handled by the upstream store
|
||||
for (var key : Stream.concat(names.written().stream(), names.deleted().stream()).toList()) {
|
||||
_cache.remove(key);
|
||||
synchronized (_cache) {
|
||||
for (var key : Stream.concat(names.written().stream(), names.deleted().stream()).toList()) {
|
||||
_cache.remove(key);
|
||||
}
|
||||
}
|
||||
delegate.commitTx(names);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user