hashicorp / hashicorp/consul

txn feature request: tree-unmodified

Open
#2,906 0 comments 0 reactions 0 assignees View on GitHub
theme/api type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

### `consul version` for both Client and Server
Client: 7.5
Server: 7.5

### client and server info dumps
(not relevant - feature request)

### Description of the Issue (and unexpected/desired result)

A txn has the ability to return an entire prefix-tree of keys.

A prefix-based fetch returns a Modify-Index header with the maximum index of any subkey.

I would like the ability to assert (without altering the tree) that a key prefix tree has not been modified, by supplying that Modify-Index.

(This is a nice-to-have: I've a bunch of operations to run against consul and this ability would vastly increase the ability to simplify my txn code.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.