forked from cockroachdb/cockroach
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: allow the InternalExecutor to work with a modified schema
The internal executor uses its own TableCollection. This is fine normally but is a problem when it is called in the context of a transaction that has already modified schema. The parent transaction will leave an outstanding intent on the schema, and the InternalExecutor will block attempting to acquire a lease on the schema. The fix is to modify the TableCollection used by the InternalExecutor to house the modified schema so that a schema lookup made by the InternalExecutor will not attempt to acquire a lease. This change is only creating the infrastructure by which this is done but not fixing the underlying deadlock problem. related to cockroachdb#34304 Release note: None
- Loading branch information
1 parent
844d751
commit 1e05a9b
Showing
3 changed files
with
36 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