Skip to content

Commit b688fc6

Browse files
committed
kvpb: update comment on ExpectExclusionSince
Epic: none Release note: None
1 parent 5af1380 commit b688fc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/kv/kvpb/api.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,11 @@ message GetRequest {
226226

227227
// ExpectExclusionSince, if set, indicates that the request should return an
228228
// error if this key has been written to at a timestamp at or after the given
229-
// timestamp. This is different from the ReadTimestamp of the transaction in
230-
// that it allows a writer to verify an unreplicated lock acquired at an
231-
// earlier timestamp has provided the required protection.
229+
// timestamp. This allows the request to verify that a previously acquired
230+
// unreplicated lock has provided the required protection. Note that it does
231+
// not check for the existence of the lock. It checks for a write that the
232+
// lock should have prevented. If such a write is found an
233+
// ExclusionViolationError is returned.
232234
util.hlc.Timestamp expect_exclusion_since = 6 [(gogoproto.nullable) = false];
233235
}
234236

0 commit comments

Comments
 (0)