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:
Markus Mäkelä 2017-12-20 21:06:19 +02:00
parent 26751ae44f
commit c9aa504f50
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ int Mariadb_nodes::stop_node(int node)
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];
if (v51)

View File

@ -259,7 +259,7 @@ public:
* @param param command line parameters for DB server start command
* @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