mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#28012 Patch : IM crashes instead of reporting an error when mysqldpath is bad
On the windows platform, if an instance object failed to initialize during program start, the instance manager would crash. This could happen if an incorrect mysqld path was supplied in the defaults configuration file. The patch prevents the program from crashing and makes it show an error message instead.
This commit is contained in:
@ -17,11 +17,17 @@
|
||||
|
||||
#include <my_global.h>
|
||||
|
||||
#define GET_VALUE 1
|
||||
#define GET_LINE 2
|
||||
enum enum_option_type
|
||||
{
|
||||
GET_VALUE = 1,
|
||||
GET_LINE
|
||||
};
|
||||
|
||||
int parse_output_and_get_value(const char *command, const char *word,
|
||||
char *result, size_t input_buffer_len,
|
||||
uint flag);
|
||||
bool parse_output_and_get_value(const char *command,
|
||||
const char *option_name_str,
|
||||
uint option_name_length,
|
||||
char *option_value_buf,
|
||||
size_t option_value_buf_size,
|
||||
enum_option_type option_type);
|
||||
|
||||
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PARSE_OUTPUT_H */
|
||||
|
Reference in New Issue
Block a user