mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
Do not rely on Memory engine even transiently in DB setup scripts (#11106)
It is not safe for use with replication, and is straight up incompatible with highly-available active-active type MySQL distributions such as Galera Co-authored-by: Tristan Deloche <tdeloche@apple.com>
This commit is contained in:
parent
ba0204f8ed
commit
544028ca8e
@ -398,7 +398,7 @@ CREATE TABLE `cloud`.`op_lock` (
|
|||||||
`waiters` int NOT NULL DEFAULT 0 COMMENT 'How many have the thread acquired this lock (reentrant)',
|
`waiters` int NOT NULL DEFAULT 0 COMMENT 'How many have the thread acquired this lock (reentrant)',
|
||||||
PRIMARY KEY (`key`),
|
PRIMARY KEY (`key`),
|
||||||
INDEX `i_op_lock__mac_ip_thread`(`mac`, `ip`, `thread`)
|
INDEX `i_op_lock__mac_ip_thread`(`mac`, `ip`, `thread`)
|
||||||
) ENGINE=Memory DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `cloud`.`configuration` (
|
CREATE TABLE `cloud`.`configuration` (
|
||||||
`category` varchar(255) NOT NULL DEFAULT 'Advanced',
|
`category` varchar(255) NOT NULL DEFAULT 'Advanced',
|
||||||
@ -1793,7 +1793,7 @@ CREATE TABLE `cloud`.`op_nwgrp_work` (
|
|||||||
INDEX `i_op_nwgrp_work__taken`(`taken`),
|
INDEX `i_op_nwgrp_work__taken`(`taken`),
|
||||||
INDEX `i_op_nwgrp_work__step`(`step`),
|
INDEX `i_op_nwgrp_work__step`(`step`),
|
||||||
INDEX `i_op_nwgrp_work__seq_no`(`seq_no`)
|
INDEX `i_op_nwgrp_work__seq_no`(`seq_no`)
|
||||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `cloud`.`op_vm_ruleset_log` (
|
CREATE TABLE `cloud`.`op_vm_ruleset_log` (
|
||||||
`id` bigint unsigned UNIQUE NOT NULL AUTO_INCREMENT COMMENT 'id',
|
`id` bigint unsigned UNIQUE NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user