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:
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user