Skip to content
Snippets Groups Projects
Commit c94e3ed1 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

doc: tiny cas help enhancement

parent 66ec40b8
No related branches found
No related tags found
1 merge request!638doc: tiny cas help enhancement
Pipeline #22163 passed
......@@ -1027,10 +1027,14 @@ pub(crate) fn setup(args: &args::Run) {
Performs a clusterwide compare-and-swap operation. Works for global
spaces only.
E.g. it checks the `predicate` on leader and if no conflicting entries
were found appends the `op` to the raft log and returns its index. If
predicate is not supplied, it will be auto generated with `index` and
`term` taken from the current instance and with empty `ranges`.
E.g. it checks the `predicate` on leader and, if no conflicting entries
were found, appends the new entry to the raft log and returns its index
(uncommitted yet).
If `predicate` is not supplied, it will be auto generated with `index`
and `term` taken from the current instance and with empty `ranges`.
Omitting `ranges` implies a blind write, therefore such usage is
discouraged.
Returns when the operation is appended to the raft log on a leader.
Returns the index of the corresponding Op::Dml.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment