Keep server state backup even on controlled shutdown

The server state information should be persisted even if a controlled
shutdown is done. This will allow the monitor to retain the server state
information across a restart.
This commit is contained in:
Markus Mäkelä
2017-03-17 11:24:26 +02:00
parent 08cc7a9515
commit 44f53663ea
2 changed files with 1 additions and 4 deletions

View File

@ -327,9 +327,6 @@ stopMonitor(MXS_MONITOR *mon)
handle->shutdown = 1; handle->shutdown = 1;
thread_wait(handle->thread); thread_wait(handle->thread);
/** Controlled shutdown, remove stored backup */
remove_server_backup(mon);
} }
/** /**

View File

@ -379,7 +379,7 @@ void load_server_backup(MXS_MONITOR *monitor)
if (process_data_file(monitor, data + MMB_LEN_SCHEMA_VERSION, if (process_data_file(monitor, data + MMB_LEN_SCHEMA_VERSION,
data + size - MMB_LEN_CRC32)) data + size - MMB_LEN_CRC32))
{ {
MXS_WARNING("Loaded persisted server states from backup file."); MXS_NOTICE("Loaded server states from backup file: %s", path);
} }
} }
else else