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:
Markus Mäkelä
2017-06-06 12:57:58 +03:00
parent 476fda9082
commit dc67f3e4f3

View File

@ -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));