Skip to content

Commit

Permalink
store/tikv: do not send batch commands to tiflash (#17282) (#17307)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored May 20, 2020
1 parent 9ff24ea commit bcc692a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/tikv/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ func (c *rpcClient) SendRequest(ctx context.Context, addr string, req *tikvrpc.R
c.recycleIdleConnArray()
}

enableBatch := req.StoreTp != kv.TiDB
// TiDB will not send batch commands to TiFlash, to resolve the conflict with Batch Cop Request.
enableBatch := req.StoreTp != kv.TiDB && req.StoreTp != kv.TiFlash
connArray, err := c.getConnArray(addr, enableBatch)
if err != nil {
return nil, errors.Trace(err)
Expand Down

0 comments on commit bcc692a

Please sign in to comment.