Merge branch 'stable-2.16'

* stable-2.16:
  Mark support for git protocol v2 as experimental
  GroupsUpdate#updateCachesOnGroupCreation: Use forEach
  Set version to 2.16.2-SNAPSHOT

Change-Id: I5d19e159e79a0eb65b75429aefee832a866520bb
This commit is contained in:
David Pursehouse
2018-12-18 08:09:11 +09:00
2 changed files with 6 additions and 6 deletions

View File

@@ -346,12 +346,8 @@ public class GroupsUpdate {
private void updateCachesOnGroupCreation(InternalGroup createdGroup) throws IOException {
indexer.get().index(createdGroup.getGroupUUID());
for (Account.Id modifiedMember : createdGroup.getMembers()) {
groupIncludeCache.evictGroupsWithMember(modifiedMember);
}
for (AccountGroup.UUID modifiedSubgroup : createdGroup.getSubgroups()) {
groupIncludeCache.evictParentGroupsOf(modifiedSubgroup);
}
createdGroup.getMembers().forEach(groupIncludeCache::evictGroupsWithMember);
createdGroup.getSubgroups().forEach(groupIncludeCache::evictParentGroupsOf);
}
private void updateCachesOnGroupUpdate(UpdateResult result) throws IOException {