Skip to content

Commit b474ab0

Browse files
Tristan971sureshanaparti
authored andcommitted
Do not rely on Memory engine even transiently in DB setup scripts
It is not safe for use with replication, and is straight up incompatible with highly-available active-active type MySQL distributions such as Galera
1 parent ba0204f commit b474ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/db/create-schema.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ CREATE TABLE `cloud`.`op_lock` (
398398
`waiters` int NOT NULL DEFAULT 0 COMMENT 'How many have the thread acquired this lock (reentrant)',
399399
PRIMARY KEY (`key`),
400400
INDEX `i_op_lock__mac_ip_thread`(`mac`, `ip`, `thread`)
401-
) ENGINE=Memory DEFAULT CHARSET=utf8;
401+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
402402

403403
CREATE TABLE `cloud`.`configuration` (
404404
`category` varchar(255) NOT NULL DEFAULT 'Advanced',
@@ -1793,7 +1793,7 @@ CREATE TABLE `cloud`.`op_nwgrp_work` (
17931793
INDEX `i_op_nwgrp_work__taken`(`taken`),
17941794
INDEX `i_op_nwgrp_work__step`(`step`),
17951795
INDEX `i_op_nwgrp_work__seq_no`(`seq_no`)
1796-
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
1796+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
17971797

17981798
CREATE TABLE `cloud`.`op_vm_ruleset_log` (
17991799
`id` bigint unsigned UNIQUE NOT NULL AUTO_INCREMENT COMMENT 'id',

0 commit comments

Comments
 (0)