mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
No need to explicitly get the write lock since clear_composite_caches gets it for us
This commit is contained in:
parent
1f50076bb8
commit
0a6010e712
@ -686,8 +686,7 @@ class Cache(object):
|
||||
composite_cache_needs_to_be_cleared = True
|
||||
if composite_cache_needs_to_be_cleared:
|
||||
try:
|
||||
with self.write_lock:
|
||||
self.clear_composite_caches()
|
||||
self.clear_composite_caches()
|
||||
except LockingError:
|
||||
# We can't clear the composite caches because a read lock is set.
|
||||
# As a consequence the value of a composite column that calls
|
||||
|
Loading…
x
Reference in New Issue
Block a user