1
0
Fork 0
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:
Marian Beermann 2017-05-31 20:47:16 +02:00
parent 67b97f2223
commit cb98cb838d

View file

@ -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