diff options
author | petr@mysql.com <> | 2006-02-10 03:35:07 +0300 |
---|---|---|
committer | petr@mysql.com <> | 2006-02-10 03:35:07 +0300 |
commit | 8488498545a109affd83dd99b8f79e96245baec9 (patch) | |
tree | c9dc6a0d1d49261bdc304f29814b85fe7d7aa473 /server-tools/instance-manager/instance_options.cc | |
parent | 01ef1d13f854157b7912e4f1bf8d945e7af49776 (diff) | |
download | mariadb-git-8488498545a109affd83dd99b8f79e96245baec9.tar.gz |
IM changes by GUI team: add a version_no column to the
SHOW INSTANCE STATUS output
Diffstat (limited to 'server-tools/instance-manager/instance_options.cc')
-rw-r--r-- | server-tools/instance-manager/instance_options.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server-tools/instance-manager/instance_options.cc b/server-tools/instance-manager/instance_options.cc index 83f13b34aa2..d2946270b9e 100644 --- a/server-tools/instance-manager/instance_options.cc +++ b/server-tools/instance-manager/instance_options.cc @@ -138,9 +138,14 @@ int Instance_options::fill_instance_version() if (*result != '\0') { + char *start; /* chop the newline from the end of the version string */ result[strlen(result) - NEWLINE_LEN]= '\0'; - mysqld_version= strdup_root(&alloc, result); + /* trim leading whitespaces */ + start= result; + while (my_isspace(default_charset_info, *start)) + ++start; + mysqld_version= strdup_root(&alloc, start); } err: return rc; @@ -167,8 +172,6 @@ err: int Instance_options::fill_log_options() { Buffer buff; - uint position= 0; - char **tmp_argv= argv; enum { MAX_LOG_OPTION_LENGTH= 256 }; char datadir[MAX_LOG_OPTION_LENGTH]; char hostname[MAX_LOG_OPTION_LENGTH]; |