Skip to content

Commit

Permalink
roachpb: provide an explanation for Transaction.refreshed_timestamp
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
andreimatei committed Sep 11, 2018
1 parent 11adb96 commit 44c80e5
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 44c80e5

Please sign in to comment.