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:
@@ -3609,6 +3609,10 @@ default behavior.
|
||||
|
||||
[[receive.enableProtocolV2]]receive.enableProtocolV2::
|
||||
+
|
||||
[NOTE]
|
||||
Support for Git protocol version 2 is still experimental. Do not use it in
|
||||
production!
|
||||
+
|
||||
Enable support for git protocol version 2.
|
||||
+
|
||||
When this option is enabled, clients may send upload pack using git
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user