-
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.
76381: sql: stale descriptor state could be observed in crdb_internal tables r=fqazi a=fqazi Fixes: #75825 Previously, when an uncommitted descriptor was added to a descriptor collection, we would not reset the cache of all immutable descriptors (used by some crdb_internal functions). This was inadequate because this could result in incorrect results from crdb_internal tables which returned information related to constraints, columns. To address this, this patch will reset the descriptor cache for all fetched descriptors when an uncommitted descriptor is added into the collection. Release note: None Co-authored-by: Faizan Qazi <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 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