commit | f1f2de14884cf156034e5a8344f2770af404fab8 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Oct 31 00:04:21 2024 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Oct 31 00:04:57 2024 +0000 |
tree | fdfca51026b864d7a3c2d01fc08ae2597b494674 | |
parent | 7473bb0aab8869b068b913749c946c82808578ba [diff] |
Fix cache invalidation of path_owners_entries Change-Id: If6039a23b33c2900434dce82bc1fc19bcab92b92
diff --git a/owners-common/src/main/java/com/googlesource/gerrit/owners/common/PathOwnersEntriesCacheImpl.java b/owners-common/src/main/java/com/googlesource/gerrit/owners/common/PathOwnersEntriesCacheImpl.java index 3af7a58..c882414 100644 --- a/owners-common/src/main/java/com/googlesource/gerrit/owners/common/PathOwnersEntriesCacheImpl.java +++ b/owners-common/src/main/java/com/googlesource/gerrit/owners/common/PathOwnersEntriesCacheImpl.java
@@ -20,6 +20,7 @@ import com.google.common.cache.LoadingCache; import com.google.common.collect.HashMultimap; import com.google.common.collect.Multimap; +import com.google.gerrit.entities.RefNames; import com.google.inject.Inject; import com.google.inject.Singleton; import com.google.inject.name.Named; @@ -88,6 +89,6 @@ } private String indexKey(String project, String branch) { - return new StringBuilder(project).append('@').append(branch).toString(); + return new StringBuilder(project).append('@').append(RefNames.fullName(branch)).toString(); } }