Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jan 8, 2021
1 parent 6215804 commit 7835b2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/tikv/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ func (c *rpcClient) SendRequest(ctx context.Context, addr string, req *tikvrpc.R
if config.GetGlobalConfig().TiKVClient.MaxBatchSize > 0 && enableBatch {
if batchReq := req.ToBatchCommandsRequest(); batchReq != nil {
defer trace.StartRegion(ctx, req.Type.String()).End()
logutil.BgLogger().Info("SendRequest", zap.Bool("staleRead", req.Context.StaleRead))
return sendBatchRequest(ctx, addr, connArray.batchConn, batchReq, timeout)
}
}
Expand Down

0 comments on commit 7835b2c

Please sign in to comment.