tarantool / tarantool/go-storage

Surface global `revision` in `tx.Response`

Open Beginner friendly
#63 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.