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:
fanmin shi
2017-05-23 17:50:20 -07:00
parent f75e333264
commit ae7ddfb483
8 changed files with 20 additions and 10 deletions

View File

@ -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)
}