Make start_node parameters const
The second parameter can be `const char*` as it is not modified. This fixes a compiler warning.
This commit is contained in:
@ -289,7 +289,7 @@ int Mariadb_nodes::stop_node(int node)
|
|||||||
return ssh_node(node, stop_db_command[node], true);
|
return ssh_node(node, stop_db_command[node], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Mariadb_nodes::start_node(int node, char * param)
|
int Mariadb_nodes::start_node(int node, const char* param)
|
||||||
{
|
{
|
||||||
char cmd[1024];
|
char cmd[1024];
|
||||||
if (v51)
|
if (v51)
|
||||||
|
|||||||
@ -259,7 +259,7 @@ public:
|
|||||||
* @param param command line parameters for DB server start command
|
* @param param command line parameters for DB server start command
|
||||||
* @return 0 if success
|
* @return 0 if success
|
||||||
*/
|
*/
|
||||||
int start_node(int node, char * param);
|
int start_node(int node, const char* param);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Check if all slaves have "Slave_IO_Running" set to "Yes" and master has N-1 slaves
|
* @brief Check if all slaves have "Slave_IO_Running" set to "Yes" and master has N-1 slaves
|
||||||
|
|||||||
Reference in New Issue
Block a user