forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: move notifying StatsRefresh of new table to post-commit hook
Prior to this change, the StatsRefresher was being notified of a new table during the execution of the createTable node, before the creating transaction had committed. Prior to cockroachdb#46170, the StatsRefresher was likely to block on the intent of the creating transaction. After that change, the StatsRefresher might not discover the new table because the creating transaction is much more likely to get pushed further into the future, past the read of the stats refresher. Release note (bug fix): Fix rare bug where stats were not automatically generated for a new table.
- Loading branch information
Showing
3 changed files
with
28 additions
and
11 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