Skip to content

Commit 6e80a22

Browse files
authored
fix the wrong merge function of LockKeysDetails.LockRPCCount (#1881)
close #1880 Signed-off-by: you06 <you1474600@gmail.com>
1 parent 1fd09ba commit 6e80a22

File tree

2 files changed

+414
-1
lines changed

2 files changed

+414
-1
lines changed

util/execdetails.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (ld *LockKeysDetails) Merge(lockKey *LockKeysDetails) {
311311
ld.ResolveLock.ResolveLockTime += lockKey.ResolveLock.ResolveLockTime
312312
ld.BackoffTime += lockKey.BackoffTime
313313
ld.LockRPCTime += lockKey.LockRPCTime
314-
ld.LockRPCCount += ld.LockRPCCount
314+
ld.LockRPCCount += lockKey.LockRPCCount
315315
ld.Mu.BackoffTypes = append(ld.Mu.BackoffTypes, lockKey.Mu.BackoffTypes...)
316316
ld.RetryCount++
317317
if ld.Mu.SlowestReqTotalTime < lockKey.Mu.SlowestReqTotalTime {

0 commit comments

Comments
 (0)