-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix)[db] Fix create database and create table data race (#44600)
There may be a race condition between CREATE DATABASE and CREATE TABLE. When CREATE DATABASE is being executed, the edit log may get stuck, while fullNameToDb in getDbNullable can still return the database. As a result, the CREATE TABLE process continues, which may ultimately lead to a strange order in the edit log of BDBJE, where CREATE TABLE appears before CREATE DATABASE.
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 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