-
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.
37983: opt: fix issue with dangling pointer in statisticsBuilder r=rytaft a=rytaft This commit fixes an issue where the `statisticsBuilder` was using an invalid pointer to update statistics for some multi-column stats in the local table statistics cache. The fix is to re-fetch the pointer to the stats just before updating them, in case the previously fetched address is no longer valid. This problem is very hard to reproduce, so I had to use the somewhat complex query from the issue for a regression test. Fixes #37953 Release note: None Co-authored-by: Rebecca Taft <becca@cockroachlabs.com>
- Loading branch information
Showing
3 changed files
with
108 additions
and
0 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