summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/commands.h
diff options
context:
space:
mode:
authorunknown <petr@mysql.com>2005-05-16 01:54:02 +0400
committerunknown <petr@mysql.com>2005-05-16 01:54:02 +0400
commit6b4dbcb4db8236d5226284ff87af9126aa83f5b6 (patch)
treec34a10d30055a4de902dd7001ead6591c91a909c /server-tools/instance-manager/commands.h
parent1ad379af8d404cc257c2ce831e4b5dec80f1c78c (diff)
downloadmariadb-git-6b4dbcb4db8236d5226284ff87af9126aa83f5b6.tar.gz
post-review fixes
include/my_sys.h: added prototype for the defaults correction function libmysql/Makefile.shared: my_chsize added to libmysql to let my_correct_defaults_file be used from libmysql mysys/default.c: New defaults function added we use it to correct defaults file. Currently the function doesn't lock defaults file. This is because of the linking and backwards-compatibility issues. This needs to be fixed later. mysys/my_chsize.c: comment added server-tools/instance-manager/buffer.cc: cleanup server-tools/instance-manager/commands.cc: refactoring: removed do_command method from most of the classes server-tools/instance-manager/commands.h: cleanup server-tools/instance-manager/guardian.cc: cleanup server-tools/instance-manager/instance.cc: cleanup server-tools/instance-manager/instance_map.cc: cleanup server-tools/instance-manager/instance_options.cc: cleanup server-tools/instance-manager/instance_options.h: cleanup server-tools/instance-manager/listener.cc: cleanup server-tools/instance-manager/log.cc: cleanup server-tools/instance-manager/manager.cc: cleanup server-tools/instance-manager/messages.cc: new errors added server-tools/instance-manager/mysql_connection.cc: cleanup server-tools/instance-manager/mysql_manager_error.h: new error codes added server-tools/instance-manager/mysqlmanager.cc: clenup server-tools/instance-manager/options.cc: cleanup server-tools/instance-manager/parse.cc: removed unused function server-tools/instance-manager/parse.h: removed prototype server-tools/instance-manager/protocol.cc: cleanup server-tools/instance-manager/protocol.h: added enum to be used in protocol.cc instead of the constants
Diffstat (limited to 'server-tools/instance-manager/commands.h')
-rw-r--r--server-tools/instance-manager/commands.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/server-tools/instance-manager/commands.h b/server-tools/instance-manager/commands.h
index 46cd0893759..bfd38d34889 100644
--- a/server-tools/instance-manager/commands.h
+++ b/server-tools/instance-manager/commands.h
@@ -31,7 +31,6 @@ public:
Show_instances(Instance_map *instance_map_arg): Command(instance_map_arg)
{}
- int do_command(struct st_net *net);
int execute(struct st_net *net, ulong connection_id);
};
@@ -60,8 +59,8 @@ class Show_instance_status : public Command
{
public:
- Show_instance_status(Instance_map *instance_map_arg, const char *name, uint len);
- int do_command(struct st_net *net, const char *instance_name);
+ Show_instance_status(Instance_map *instance_map_arg,
+ const char *name, uint len);
int execute(struct st_net *net, ulong connection_id);
const char *instance_name;
};
@@ -76,10 +75,10 @@ class Show_instance_options : public Command
{
public:
- Show_instance_options(Instance_map *instance_map_arg, const char *name, uint len);
+ Show_instance_options(Instance_map *instance_map_arg,
+ const char *name, uint len);
int execute(struct st_net *net, ulong connection_id);
- int do_command(struct st_net *net, const char *instance_name);
const char *instance_name;
};
@@ -129,7 +128,6 @@ public:
Show_instance_log(Instance_map *instance_map_arg, const char *name,
uint len, Log_type log_type_arg, const char *size_arg,
const char *offset_arg);
- int do_command(struct st_net *net, const char *instance_name);
int execute(struct st_net *net, ulong connection_id);
Log_type log_type;
const char *instance_name;
@@ -147,8 +145,8 @@ class Show_instance_log_files : public Command
{
public:
- Show_instance_log_files(Instance_map *instance_map_arg, const char *name, uint len);
- int do_command(struct st_net *net, const char *instance_name);
+ Show_instance_log_files(Instance_map *instance_map_arg,
+ const char *name, uint len);
int execute(struct st_net *net, ulong connection_id);
const char *instance_name;
const char *option;
@@ -156,10 +154,10 @@ public:
/*
- Syntax error command. This command is issued if parser reported a syntax error.
- We need it to distinguish the parse error and the situation when parser internal
- error occured. E.g. parsing failed because we hadn't had enought memory. In the
- latter case parse_command() should return an error.
+ Syntax error command. This command is issued if parser reported a syntax
+ error. We need it to distinguish the parse error and the situation when
+ parser internal error occured. E.g. parsing failed because we hadn't had
+ enought memory. In the latter case parse_command() should return an error.
*/
class Syntax_error : public Command
@@ -185,7 +183,7 @@ public:
virtual int do_command(struct st_net *net);
int execute(struct st_net *net, ulong connection_id);
protected:
- int correct_file(bool skip);
+ int correct_file(int skip);
public:
const char *instance_name;
uint instance_name_len;