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