Skip to content

Commit

Permalink
store/gcworker: remove NotifyDeleteRangeTask after UnsafeDestroyRange
Browse files Browse the repository at this point in the history
Signed-off-by: shirly <AndreMouche@126.com>
  • Loading branch information
AndreMouche committed Jul 14, 2021
1 parent 07739b7 commit d76049f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions store/gcworker/gc_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,13 +848,6 @@ func (w *GCWorker) doUnsafeDestroyRangeRequest(ctx context.Context, startKey []b
return errors.Errorf("[gc worker] destroy range finished with errors: %v", errs)
}

// Notify all affected regions in the range that UnsafeDestroyRange occurs.
notifyTask := tikv.NewNotifyDeleteRangeTask(w.tikvStore, startKey, endKey, concurrency)
err = notifyTask.Execute(ctx)
if err != nil {
return errors.Annotate(err, "[gc worker] failed notifying regions affected by UnsafeDestroyRange")
}

return nil
}

Expand Down

0 comments on commit d76049f

Please sign in to comment.