Skip to content

Commit

Permalink
Break out if g.Ctx is done (#6676)
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 c605cb5 commit a1ce240
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 @@ -1016,6 +1016,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 a1ce240

Please sign in to comment.