diff --git a/internal/locate/region_request.go b/internal/locate/region_request.go index ebdfd7da50..75139f5f45 100644 --- a/internal/locate/region_request.go +++ b/internal/locate/region_request.go @@ -47,7 +47,6 @@ import ( "time" "unsafe" - "github.com/tikv/client-go/v2/oracle" "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -64,6 +63,7 @@ import ( "github.com/tikv/client-go/v2/internal/logutil" "github.com/tikv/client-go/v2/kv" "github.com/tikv/client-go/v2/metrics" + "github.com/tikv/client-go/v2/oracle" "github.com/tikv/client-go/v2/tikvrpc" "github.com/tikv/client-go/v2/util" "github.com/tikv/pd/client/errs" diff --git a/txnkv/transaction/pipelined_flush.go b/txnkv/transaction/pipelined_flush.go index 656321f734..4a61578b5f 100644 --- a/txnkv/transaction/pipelined_flush.go +++ b/txnkv/transaction/pipelined_flush.go @@ -459,6 +459,7 @@ func (c *twoPhaseCommitter) resolveFlushedLocks(bo *retry.Backoffer, start, end handler, ) runner.SetStatLogInterval(30 * time.Second) + runner.SetRegionsPerTask(1) go func() { if err = runner.RunOnRange(bo.GetCtx(), start, end); err != nil {