Skip to content

Commit 4e0c27c

Browse files
authored
fix: infinite loop caused by some members being unable to retrieve data (#1095)
1 parent c7f7e38 commit 4e0c27c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/group/incremental_sync.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ func (g *Group) IncrSyncGroupAndMember(ctx context.Context, groupIDs ...string)
8080
if err != nil {
8181
return err
8282
}
83+
if len(groupVersion) == 0 {
84+
for _, req := range groups {
85+
delete(groupIDSet, req.GroupID)
86+
}
87+
continue
88+
}
8389
groups = groups[:0]
8490
for groupID, resp := range groupVersion {
8591
tempResp := resp

0 commit comments

Comments
 (0)