MXS-1273: Use default engine for replication_heartbeat table
The MySQL monitor replication_heartbeat table now uses the default storage engine of the database when creating the table. Most of the time the default is InnoDB which makes the table crash-safe.
This commit is contained in:
@ -1540,8 +1540,7 @@ static void set_master_heartbeat(MYSQL_MONITOR *handle, MXS_MONITOR_SERVERS *dat
|
|||||||
"(maxscale_id INT NOT NULL, "
|
"(maxscale_id INT NOT NULL, "
|
||||||
"master_server_id INT NOT NULL, "
|
"master_server_id INT NOT NULL, "
|
||||||
"master_timestamp INT UNSIGNED NOT NULL, "
|
"master_timestamp INT UNSIGNED NOT NULL, "
|
||||||
"PRIMARY KEY ( master_server_id, maxscale_id ) ) "
|
"PRIMARY KEY ( master_server_id, maxscale_id ) )"))
|
||||||
"ENGINE=MYISAM DEFAULT CHARSET=latin1"))
|
|
||||||
{
|
{
|
||||||
MXS_ERROR("Error creating maxscale_schema.replication_heartbeat "
|
MXS_ERROR("Error creating maxscale_schema.replication_heartbeat "
|
||||||
"table in Master server: %s", mysql_error(database->con));
|
"table in Master server: %s", mysql_error(database->con));
|
||||||
|
Reference in New Issue
Block a user