v3rpc: check max ops in txn

This commit is contained in:
Xiang Li
2016-01-25 21:04:19 -08:00
parent b1a45fe1c8
commit c8bf77c722
3 changed files with 62 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import (
var (
ErrEmptyKey = grpc.Errorf(codes.InvalidArgument, "key is not provided")
ErrTooManyOps = grpc.Errorf(codes.InvalidArgument, "too many operations in txn request")
ErrCompacted = grpc.Errorf(codes.OutOfRange, storage.ErrCompacted.Error())
ErrFutureRev = grpc.Errorf(codes.OutOfRange, storage.ErrFutureRev.Error())
ErrLeaseNotFound = grpc.Errorf(codes.NotFound, "requested lease not found")