diff --git a/command/agent/txn_endpoint.go b/command/agent/txn_endpoint.go index 17d6b6ea41..b589678e90 100644 --- a/command/agent/txn_endpoint.go +++ b/command/agent/txn_endpoint.go @@ -14,7 +14,7 @@ const ( // maxTxnOps is used to set an upper limit on the number of operations // inside a transaction. If there are more operations than this, then the // client is likely abusing transactions. - maxTxnOps = 500 + maxTxnOps = 64 ) // decodeValue decodes the value member of the given operation. diff --git a/website/source/docs/agent/http/kv.html.markdown b/website/source/docs/agent/http/kv.html.markdown index 55e02800d7..87c377c3c6 100644 --- a/website/source/docs/agent/http/kv.html.markdown +++ b/website/source/docs/agent/http/kv.html.markdown @@ -182,7 +182,8 @@ query parameters will be ignored, since writes are always managed by the leader the Raft consensus protocol. The body of the request should be a list of operations to perform inside the atomic -transaction, which looks like this: +transaction. Up to 64 operations may be present in a single transaction. Operations +look like this: ```javascript [ @@ -200,8 +201,6 @@ transaction, which looks like this: ] ``` -Up to 500 operations may be present in a single transaction. - `KV` is the only available operation type, though other types of operations may be added in future versions of Consul to be mixed with key/value operations. The following fields are available: