-
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: treat GetRequests as non-directional in BatchRequest.Split
This commit updates `BatchRequest.Split` to treat `GetRequest`s as non-directional so that batches with Gets and ReverseScans are not split. Without this fix currently when reading from a secondary index in the reverse direction, we might crash. This was exposed recently by issueing the GetRequests for indexes without STORING clause, but it is present on 21.2 for index with STORING clause. Release note (bug fix): Previously, CockroachDB could crash when reading of a secondary index with STORING clause in reverse direction (because of ORDER BY col DESC). The bug was introduced in 21.2.
- Loading branch information
1 parent
0add335
commit 619f395
Showing
3 changed files
with
32 additions
and
1 deletion.
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