commit | 5221a1a743fdb70ce0bbff3f374bc76feec8163a | [log] [tgz] |
---|---|---|
author | Marija Savtchouk <mariasavtchouk@google.com> | Thu Jan 13 12:33:53 2022 +0000 |
committer | Marija Savtchouk <mariasavtchouk@google.com> | Thu Jan 13 12:34:22 2022 +0000 |
tree | d2d087ef00537fe7970243b8f8a2792107ea2b81 | |
parent | 99bdbffe11f972aa7d5f5069bc4004b90b4c54ba [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: I64a83a981b7d4247f6d7309988f17a41a54c6e9a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java b/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java index cb46c94..a663fd6 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java +++ b/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java
@@ -88,7 +88,7 @@ ProjectConfig projectConfig = projectConfigFactory.read(md); configTranslator.applyTo(inConfig, projectConfig); projectConfig.commit(md); - projectCache.evict(projectName); + projectCache.evictAndReindex(projectName); } ProjectState projectState =