integration: creation of cluster now takes maxTxnOps

This commit is contained in:
fanmin shi
2017-05-24 11:04:17 -07:00
parent ae7ddfb483
commit e9f464debc
6 changed files with 15 additions and 8 deletions

View File

@@ -152,7 +152,6 @@ func checkDeleteRequest(r *pb.DeleteRangeRequest) error {
}
func checkTxnRequest(r *pb.TxnRequest, maxTxnOps int) error {
plog.Infof("maxTxnOps %v", maxTxnOps)
if len(r.Compare) > maxTxnOps || len(r.Success) > maxTxnOps || len(r.Failure) > maxTxnOps {
return rpctypes.ErrGRPCTooManyOps
}