mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
WL#2246 "IM: Add ability to change instance options, add server logs handling" ported to the
current version of the IM server-tools/instance-manager/commands.cc: Log and set options commands added server-tools/instance-manager/commands.h: Log and set options commands added server-tools/instance-manager/factory.cc: Log and set options factory entries added server-tools/instance-manager/factory.h: prototypes added server-tools/instance-manager/instance_options.cc: fill_log_options() added server-tools/instance-manager/instance_options.h: log processing options and funcctions added server-tools/instance-manager/messages.cc: new error messages added (log and option processing-related) server-tools/instance-manager/mysql_connection.cc: minor fixes server-tools/instance-manager/mysql_manager_error.h: new error codes added server-tools/instance-manager/parse.cc: parser fixed to recognize new commands. function to parse command-line options added server-tools/instance-manager/parse.h: header fixed in line with .cc changes server-tools/instance-manager/parse_output.cc: cleanup server-tools/instance-manager/parse_output.h: header guards added server-tools/instance-manager/protocol.cc: Protocol support extended to provide messages in ok packet server-tools/instance-manager/protocol.h: protocol support extended: ok packet could contain messages
This commit is contained in:
@@ -16,10 +16,24 @@
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
|
||||
#include "factory.h"
|
||||
#include <my_global.h>
|
||||
#include <my_sys.h>
|
||||
|
||||
class Command;
|
||||
class Command_factory;
|
||||
|
||||
enum Log_type
|
||||
{
|
||||
LOG_ERROR= 0,
|
||||
LOG_GENERAL,
|
||||
LOG_SLOW
|
||||
};
|
||||
|
||||
Command *parse_command(Command_factory *factory, const char *text);
|
||||
|
||||
int parse_arguments(const char *command, const char *word, char *result,
|
||||
int max_result_cardinality, size_t option_len);
|
||||
|
||||
/* define kinds of the word seek method */
|
||||
enum { ALPHANUM= 1, NONSPACE };
|
||||
|
||||
@@ -44,10 +58,12 @@ inline void get_word(const char **text, uint *word_len,
|
||||
while (my_isalnum(default_charset_info, *word_end))
|
||||
++word_end;
|
||||
else
|
||||
while (!my_isspace(default_charset_info, *word_end))
|
||||
while (!my_isspace(default_charset_info, *word_end) &&
|
||||
(*word_end != '\0'))
|
||||
++word_end;
|
||||
|
||||
*word_len= word_end - *text;
|
||||
}
|
||||
|
||||
|
||||
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PARSE_H */
|
||||
|
||||
Reference in New Issue
Block a user