tarantool / tarantool/go-storage
Surface global `revision` in `tx.Response`
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
TbCS maintains a global monotonic revision counter, incremented exactly once per modifying transaction. Every API response — including read-only get and txn — carries the current value of that counter. Callers commonly need it to drive watchers, retries, and external bookkeeping.
txnResponse.Revision is decoded but discarded — it's only used as a fallback ModRevision per record. tx.Response should carry the global revision directly.
etcd compatibility
Yes — every response carries ResponseHeader.Revision. This brings the wrapper closer to etcd.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in driver/tcs/txn.go, where txnResponse.Revision is decoded, and inspect the tx.Response definition and response paths for get and txn. Done means the global revision is available through tx.Response for every API response, including read-only operations, rather than only serving as a per-record fallback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100