Remove repurposing of servers

This was not very safe or correct. For example statistics and parameters
were reused by a new server.
This commit is contained in:
Markus Mäkelä
2018-08-16 21:28:06 +03:00
parent 6a06654ee9
commit eddae78b42
3 changed files with 1 additions and 50 deletions

View File

@ -375,23 +375,6 @@ inline bool server_is_disk_space_exhausted(const SERVER* server)
*/
extern SERVER* server_alloc(const char *name, MXS_CONFIG_PARAMETER* params);
/**
* @brief Find a server that can be reused
*
* A server that has been destroyed will not be deleted but only deactivated.
*
* @param name Name of the server
* @param protocol Protocol used by the server
* @param authenticator The authenticator module of the server
* @param address The network address of the new server
* @param port The port of the new server
*
* @return Repurposed SERVER or NULL if no servers matching the criteria were
* found
* @see runtime_create_server
*/
SERVER* server_repurpose_destroyed(const char *name, const char *protocol, const char *authenticator,
const char *address, const char *port);
/**
* @brief Serialize a server to a file
*