commit | cd4c46c740f3d5967c4e3bd1dda208013ec0ec45 | [log] [tgz] |
---|---|---|
author | Jacek Centkowski <geminica.programs@gmail.com> | Mon Dec 05 08:11:22 2022 +0100 |
committer | Jacek Centkowski <geminica.programs@gmail.com> | Mon Dec 05 08:11:22 2022 +0100 |
tree | b1b5e2f1236a106f9da16cc045aac265bff063b9 | |
parent | 4f2721a27ce485d597c8b90b046cf28c973af740 [diff] | |
parent | 39f62a9da2aff9d712077d746997266247a94192 [diff] |
Merge branch 'stable-3.3' into stable-3.5 * stable-3.3: Bind the cached-refdb repository manager also as named binding Cache refs/... resolutions Allow binding the module without GitRepositoryManager Preload all cache when fetching all refs Use DelegateRepository implementation from Gerrit core Add change verification Change-Id: If237264e04363e25bd46d21c551433b830b80a53
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java index a273e70..e527725 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java +++ b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedGitRepositoryManager.java
@@ -60,4 +60,9 @@ LocalDiskRepositoryManager getRepoManager() { return repoManager; } + + @Override + public Status getRepositoryStatus(Project.NameKey name) { + return repoManager.getRepositoryStatus(name); + } }
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java index c47e34f..dada373 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java +++ b/src/main/java/com/googlesource/gerrit/plugins/cachedrefdb/CachedRefRepository.java
@@ -180,7 +180,7 @@ } @Override - public Set<ObjectId> getAdditionalHaves() { + public Set<ObjectId> getAdditionalHaves() throws IOException { return delegate.getAdditionalHaves(); } @@ -203,7 +203,7 @@ } @Override - public Map<AnyObjectId, Set<Ref>> getAllRefsByPeeledObjectId() { + public Map<AnyObjectId, Set<Ref>> getAllRefsByPeeledObjectId() throws IOException { return delegate.getAllRefsByPeeledObjectId(); }