Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
30047: roachpb: provide an explanation for Transaction.refreshed_timestamp r=andreimatei a=andreimatei

Release note: None

Co-authored-by: Andrei Matei <[email protected]>
  • Loading branch information
craig[bot] and andreimatei committed Sep 19, 2018
2 parents 4a02498 + 44c80e5 commit b9bfb5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/roachpb/data.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/roachpb/data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ message Transaction {
// encountered during the course of the txn. If set, this take precedence
// over orig_timestamp and is the timestamp at which the transaction both
// reads and writes going forward.
// We need to keep track of both refresh_timestamp and orig_timestamp (instead
// of simply overwriting the orig_timestamp after refreshes) because the
// orig_timestamp needs to be used as a lower bound timestamp for the
// time-bound iterator used to resolve intents - i.e. there can be intents to
// resolve up to the timestamp that the txn started with.
util.hlc.Timestamp refreshed_timestamp = 15 [(gogoproto.nullable) = false];
// A list of <NodeID, timestamp> pairs. The list maps NodeIDs to timestamps
// as observed from their local clock during this transaction. The purpose of
Expand Down

0 comments on commit b9bfb5f

Please sign in to comment.