-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachpb: set
isRead
for DeleteRequest
`DeleteRequest` performs a read to determine whether an existing, live key was deleted, in order to populate the `DeleteResponse.FoundKey` field. It must therefore have the `isRead` flag in order to avoid deferring the `WriteTooOldError` and returning a possibly incorrect value in the case of a write-write conflict (if the delete was submitted below a newer key). This has no externally visible effect on KV callers, because the `WriteTooOldError` is retried on the client side (in `txnSpanRefresher`), but it does violate the server contract. The flag may also avoid an unnecessary Raft round trip to lay down an intent that would be replaced later anyway. Release note: None
- Loading branch information
1 parent
c5decae
commit 45d609a
Showing
4 changed files
with
170 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters