etcdserver: add --max-txn-ops flag
--max-txn-ops allows users to define the maximum transaction operations for each txn request. it defaults at 128. Fixes #7826
This commit is contained in:
@ -201,7 +201,7 @@ func TestV3TxnTooManyOps(t *testing.T) {
|
||||
|
||||
for i, tt := range tests {
|
||||
txn := &pb.TxnRequest{}
|
||||
for j := 0; j < v3rpc.MaxOpsPerTxn+1; j++ {
|
||||
for j := 0; j < v3rpc.MaxTxnOps+1; j++ {
|
||||
tt(txn)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user