Skip to content

Commit

Permalink
p-dml: resolve locks concurrently (#1584)
Browse files Browse the repository at this point in the history
close #1577

Signed-off-by: you06 <[email protected]>
  • Loading branch information
you06 authored Feb 19, 2025
1 parent 279dcd5 commit 075b19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import (
"sync/atomic"
"time"

"github.com/tikv/client-go/v2/oracle"
"go.uber.org/zap"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand All @@ -62,6 +61,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"
Expand Down
1 change: 1 addition & 0 deletions txnkv/transaction/pipelined_flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ func (c *twoPhaseCommitter) resolveFlushedLocks(bo *retry.Backoffer, start, end
handler,
)
runner.SetStatLogInterval(30 * time.Second)
runner.SetRegionsPerTask(1)

c.txn.spawnWithStorePool(func() {
if err = runner.RunOnRange(bo.GetCtx(), start, end); err != nil {
Expand Down

0 comments on commit 075b19f

Please sign in to comment.