[MDEV-31698] Make create/drop catalog atomic Created: 2023-07-15  Updated: 2023-11-01

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Michael Widenius Assignee: Michael Widenius
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-31542 Add multi-tenancy catalogs to MariaDB Stalled

 Description   

Add create catalog and drop catalog to ddl_log (to make them atomic)

  • If create catalog fails in the middle, we should delete the catalog files (my.cnf, catalog.opt) and drop the directory.
  • Not sure what to do if 'drop catalog' had started as the user may have killed the server to not
    loose all data. One option is to finish the drop only if the catalog directory does not hold any
    other data than the catalog configuration files.

Generated at Thu Feb 08 10:25:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.