diff options
author | unknown <petr@mysql.com> | 2005-06-07 15:47:02 +0400 |
---|---|---|
committer | unknown <petr@mysql.com> | 2005-06-07 15:47:02 +0400 |
commit | 4a43eccac6915afbe251aa097e1506549e15dab0 (patch) | |
tree | 6c3e68bd97165c358c335511049bee834e49d598 /server-tools/instance-manager/instance_options.h | |
parent | 26f03563f724b1bcab931d1120a56825135ce24c (diff) | |
download | mariadb-git-4a43eccac6915afbe251aa097e1506549e15dab0.tar.gz |
post-review fixes
server-tools/instance-manager/commands.cc:
remove commented out code
server-tools/instance-manager/instance.cc:
use flag instead of int variable
server-tools/instance-manager/instance.h:
no more default values
server-tools/instance-manager/instance_map.cc:
use flag to be more verbose
server-tools/instance-manager/instance_options.cc:
don't read options when looking for an option, use strmake instead of strchr
server-tools/instance-manager/instance_options.h:
fix comment, use flag instead of int value
server-tools/instance-manager/listener.cc:
don't like c++ comments
server-tools/instance-manager/log.cc:
safety: strmake adds trailing zero to the string
server-tools/instance-manager/parse_output.cc:
use strmake instead of strncpy, renamed varianles to make code more readable
server-tools/instance-manager/parse_output.h:
get rid of default value
Diffstat (limited to 'server-tools/instance-manager/instance_options.h')
-rw-r--r-- | server-tools/instance-manager/instance_options.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server-tools/instance-manager/instance_options.h b/server-tools/instance-manager/instance_options.h index 0d2c32fae66..e2048c4c548 100644 --- a/server-tools/instance-manager/instance_options.h +++ b/server-tools/instance-manager/instance_options.h @@ -34,6 +34,8 @@ don't have to synchronize between threads. */ +enum { USUAL_INSTANCE= 0, DEFAULT_SINGLE_INSTANCE }; + class Instance_options { public: @@ -45,7 +47,7 @@ public: {} ~Instance_options(); /* fills in argv */ - int complete_initialization(const char *default_path, int only_instance); + int complete_initialization(const char *default_path, uint instance_type); int add_option(const char* option); int init(const char *instance_name_arg); @@ -66,7 +68,7 @@ public: char **argv; /* Here we cache the version string, obtained from mysqld --version. - In the case when mysqld binary is not found we get "unknown" here. + In the case when mysqld binary is not found we get NULL here. */ const char *mysqld_version; /* We need the some options, so we store them as a separate pointers */ |