diff options
author | unknown <petr@mysql.com> | 2004-10-27 10:21:48 +0400 |
---|---|---|
committer | unknown <petr@mysql.com> | 2004-10-27 10:21:48 +0400 |
commit | d97e8686f1aa3c880eb5baa9319b1e821d6d2bab (patch) | |
tree | b02502dafdd06567037ebe20ec97173a4268fc16 /server-tools/instance-manager/commands.cc | |
parent | 234ca309b9e1e49b6425fbf0dfd662e7d0f7b383 (diff) | |
download | mariadb-git-d97e8686f1aa3c880eb5baa9319b1e821d6d2bab.tar.gz |
more review fixes
server-tools/instance-manager/command.cc:
member rename
server-tools/instance-manager/commands.cc:
rename
server-tools/instance-manager/commands.h:
member rename
server-tools/instance-manager/guardian.cc:
guardian fixed to use Instance_map::Iterator intead of Imap
server-tools/instance-manager/instance_map.cc:
removed get_instance method from Instance_map as it is needed only by
Iterator which is made a friend class
server-tools/instance-manager/instance_map.h:
use Instance_map::Iterator instead if Imap_iterator (no need to add more
names to the global namespace)
Diffstat (limited to 'server-tools/instance-manager/commands.cc')
-rw-r--r-- | server-tools/instance-manager/commands.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/server-tools/instance-manager/commands.cc b/server-tools/instance-manager/commands.cc index 357b9a47d4d..102a3df00e5 100644 --- a/server-tools/instance-manager/commands.cc +++ b/server-tools/instance-manager/commands.cc @@ -60,7 +60,7 @@ int Show_instances::do_command(struct st_net *net) { Instance *instance; - Imap_iterator iterator(instance_map); + Instance_map::Iterator iterator(instance_map); instance_map->lock(); while (instance= iterator.next()) @@ -110,9 +110,9 @@ int Flush_instances::execute(struct st_net *net, ulong connection_id) /* implementation for Show_instance_status: */ -Show_instance_status::Show_instance_status(Instance_map *imap_arg, +Show_instance_status::Show_instance_status(Instance_map *instance_map_arg, const char *name, uint len) - :Command(imap_arg) + :Command(instance_map_arg) { Instance *instance; @@ -212,9 +212,9 @@ int Show_instance_status::execute(struct st_net *net, ulong connection_id) /* Implementation for Show_instance_options */ -Show_instance_options::Show_instance_options(Instance_map *imap_arg, +Show_instance_options::Show_instance_options(Instance_map *instance_map_arg, const char *name, uint len): - Command(imap_arg) + Command(instance_map_arg) { Instance *instance; @@ -333,9 +333,9 @@ int Show_instance_options::execute(struct st_net *net, ulong connection_id) /* Implementation for Start_instance */ -Start_instance::Start_instance(Instance_map *imap_arg, +Start_instance::Start_instance(Instance_map *instance_map_arg, const char *name, uint len) - :Command(imap_arg) + :Command(instance_map_arg) { /* we make a search here, since we don't want t store the name */ if (instance= instance_map->find(name, len)) @@ -366,9 +366,9 @@ int Start_instance::execute(struct st_net *net, ulong connection_id) /* Implementation for Stop_instance: */ -Stop_instance::Stop_instance(Instance_map *imap_arg, +Stop_instance::Stop_instance(Instance_map *instance_map_arg, const char *name, uint len) - :Command(imap_arg) + :Command(instance_map_arg) { /* we make a search here, since we don't want t store the name */ if (instance= instance_map->find(name, len)) |