Skip to content

Commit

Permalink
fix(dgraph): Panic because of nil map in groups.go (#5999) (#6008)
Browse files Browse the repository at this point in the history
Fixes DGRAPH-1935

(cherry picked from commit 3c46878)

Co-authored-by: Rahul Gurnani <rahulgurnani09@gmail.com>
  • Loading branch information
parasssh and rahulgurnani authored Jul 15, 2020
1 parent 7c54bd9 commit 708d3e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,9 @@ func (g *groupi) processOracleDeltaStream() {
return
}
batch++
if delta.GroupChecksums == nil {
delta.GroupChecksums = make(map[uint32]uint64)
}
delta.Txns = append(delta.Txns, more.Txns...)
delta.MaxAssigned = x.Max(delta.MaxAssigned, more.MaxAssigned)
for gid, checksum := range more.GroupChecksums {
Expand Down

0 comments on commit 708d3e7

Please sign in to comment.