From cb98cb838d2b73387fa4a311734a2b3c842f6e17 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Wed, 31 May 2017 20:47:16 +0200 Subject: [PATCH] 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. --- src/borg/fuse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/fuse.py b/src/borg/fuse.py index 28e09689d..4441c4063 100644 --- a/src/borg/fuse.py +++ b/src/borg/fuse.py @@ -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