commit | 46d29f83ed66750a871881280a85ae4ad3427104 | [log] [tgz] |
---|---|---|
author | Marija Savtchouk <mariasavtchouk@google.com> | Thu Jan 13 12:14:04 2022 +0000 |
committer | Marija Savtchouk <mariasavtchouk@google.com> | Thu Jan 13 12:14:45 2022 +0000 |
tree | 70ca37c52a34bdb890f161d63aafd3bbacf2df03 | |
parent | d2e8d12a231a7a54689e5a06266fb113c6f157e6 [diff] |
Adopt plugin to ProjectCache.evict rename The rename was introduced by I946e8df456424de52f694cdcf6456b77d452ae4c which causes the projects not being reindexed on cache evictions. Change-Id: I80da7953901eb67902b87d5b7a7b9d0825278024
diff --git a/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java b/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java index d6f471d..8f685f2 100644 --- a/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java +++ b/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
@@ -288,7 +288,7 @@ try { // TODO: Remove, this is just band-aid. // Evict project cache because this is called before that eviction is done in core - projectCache.evict(allProjectsName); + projectCache.evictAndReindex(allProjectsName); updateConfiguration(); } catch (NoSuchProjectException e) { throw new IllegalStateException(e);