summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/command.h
diff options
context:
space:
mode:
authorunknown <petr@mysql.com>2004-10-26 23:22:12 +0400
committerunknown <petr@mysql.com>2004-10-26 23:22:12 +0400
commit234ca309b9e1e49b6425fbf0dfd662e7d0f7b383 (patch)
tree84047e5c9807f54931f2d0793890253e8b140755 /server-tools/instance-manager/command.h
parenta3d9a1eb066d7cca01bef104d065864f2a7c65ec (diff)
downloadmariadb-git-234ca309b9e1e49b6425fbf0dfd662e7d0f7b383.tar.gz
Various post-review fixes
server-tools/instance-manager/buffer.cc: simplified buffer interface server-tools/instance-manager/buffer.h: simplified buffer interface server-tools/instance-manager/command.cc: Command class now uses instance_map directly server-tools/instance-manager/command.h: Made Command to use instance_map directly (not through the factory, which is not needed here in fact) server-tools/instance-manager/commands.cc: Moved mysql client/server protocol-specific functions to the commands server-tools/instance-manager/commands.h: Added a comment for Syntax_error command, fixed classes to use instance map instead of the factory server-tools/instance-manager/factory.cc: Fixed factory to give appropriate class to the commands server-tools/instance-manager/guardian.cc: Fixed guardian to delay start of new instances monitoring. Moved guardian initialization to the class from Instance map. server-tools/instance-manager/guardian.h: interface fixed server-tools/instance-manager/instance.cc: added some loging server-tools/instance-manager/instance_map.cc: All non-instance map specific functions moved from the class. Added iterator for instance_map server-tools/instance-manager/instance_map.h: All non-instance map related functions moved from the class. Added iterator for instance_map. server-tools/instance-manager/listener.cc: Added FD_CLOEXEC flag to sockets, as we don't want instances to inherit them after exec. server-tools/instance-manager/manager.cc: use guardian method moved from the instance map server-tools/instance-manager/mysql_connection.cc: cleanup server-tools/instance-manager/protocol.cc: fix according to the changes in the Buffer class
Diffstat (limited to 'server-tools/instance-manager/command.h')
-rw-r--r--server-tools/instance-manager/command.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/server-tools/instance-manager/command.h b/server-tools/instance-manager/command.h
index 9b981ecd163..8ae4e33b92f 100644
--- a/server-tools/instance-manager/command.h
+++ b/server-tools/instance-manager/command.h
@@ -24,7 +24,7 @@
/* Class responsible for allocation of im commands. */
-class Command_factory;
+class Instance_map;
/*
Command - entry point for any command.
@@ -34,14 +34,14 @@ class Command_factory;
class Command
{
public:
- Command(Command_factory *factory_arg= 0);
+ Command(Instance_map *instance_map_arg= 0);
virtual ~Command();
/* method of executing: */
virtual int execute(struct st_net *net, ulong connection_id) = 0;
protected:
- Command_factory *factory;
+ Instance_map *instance_map;
};
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_COMMAND_H */