mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-21 21:57:36 +00:00
fuse: fix read(2) caching data in metadata cache
The OS page cache is responsible for handling this and is much more empowered to do a good job at that than Borg.
This commit is contained in:
parent
67b97f2223
commit
cb98cb838d
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ def read(self, fh, offset, size):
|
|||
# evict fully read chunk from cache
|
||||
del self.data_cache[id]
|
||||
else:
|
||||
data = self.key.decrypt(id, self.repository.get(id))
|
||||
data = self.key.decrypt(id, self.repository_uncached.get(id))
|
||||
if offset + n < len(data):
|
||||
# chunk was only partially read, cache it
|
||||
self.data_cache[id] = data
|
||||
|
|
Loading…
Reference in a new issue