[MDEV-24576] Atomic CREATE TABLE Created: 2021-01-12 Updated: 2022-11-01 Resolved: 2021-05-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Create Table |
| Fix Version/s: | 10.6.1 |
| Type: | Task | Priority: | Critical |
| Reporter: | Michael Widenius | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The purpose of this task is to ensure that CREATE TABLE is atomic. The CREATE logic should be:
During recovery, delete any incomplete objects that are not in the binary log. All part of CREATE are now atomic, in the sense that if there is a crash, there will be no temporary tables left and all tables There is still one thing that should be fixed DROP TABLE IF EXISTS foo; The problem is that if CREATE TABLE fails or the server crashes during the create, the old table foo will not be recovered. |
| Comments |
| Comment by Michael Widenius [ 2021-01-21 ] |
|
Code is ready for review in bb-10.6-monty |