Skip to content

Surface global revision in tx.Response #63

Description

@bigbes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions