Skip to content

Commit

Permalink
Break out if g.Ctx is done (#6675)
Browse files Browse the repository at this point in the history
(cherry picked from commit a8a47af)

Co-authored-by: Manish R Jain <manish@dgraph.io>
  • Loading branch information
Ibrahim Jarif and manishrjain authored Oct 7, 2020
1 parent b84251f commit b52a1bf
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 @@ -1024,6 +1024,9 @@ func (g *groupi) processOracleDeltaStream() {
if err == nil {
break
}
if g.Ctx().Err() != nil {
break
}
glog.Errorf("While proposing delta with MaxAssigned: %d and num txns: %d."+
" Error=%v. Retrying...\n", delta.MaxAssigned, len(delta.Txns), err)
}
Expand Down

0 comments on commit b52a1bf

Please sign in to comment.