From 8c9f7656c3078a4d4a2986400a9700a9c13b416f Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 29 Jan 2020 19:11:00 +0100 Subject: reftable: clear cache on full compaction The merged table contains handles to open files. A full compaction causes those files to be closed, and so further lookups would fail with EBADF. Change-Id: I7bb74f7228ecc7fec9535b00e56a617a9c18e00e Signed-off-by: Han-Wen Nienhuys Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/internal/storage/file/FileReftableDatabase.java | 1 + 1 file changed, 1 insertion(+) (limited to 'org.eclipse.jgit') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableDatabase.java index fd80ad9ec0..c9ee165a38 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableDatabase.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableDatabase.java @@ -139,6 +139,7 @@ public class FileReftableDatabase extends RefDatabase { reftableDatabase.getLock().lock(); try { reftableStack.compactFully(); + reftableDatabase.clearCache(); } finally { reftableDatabase.getLock().unlock(); } -- cgit v1.2.3