Browse Source

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.
Marian Beermann 8 years ago
parent
commit
cb98cb838d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/fuse.py

+ 1 - 1
src/borg/fuse.py

@@ -340,7 +340,7 @@ class FuseOperations(llfuse.Operations):
                     # 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