Commit 58faa569 authored by unknown's avatar unknown

Merge mysql.com:/home/jimw/my/mysql-5.1-19059

into  mysql.com:/home/jimw/my/mysql-5.1-clean


sql/mysqld.cc:
  Auto merged
parents d9c1d258 11099ed5
...@@ -132,7 +132,7 @@ int Instance_options::fill_instance_version() ...@@ -132,7 +132,7 @@ int Instance_options::fill_instance_version()
bzero(result, MAX_VERSION_STRING_LENGTH); bzero(result, MAX_VERSION_STRING_LENGTH);
rc= parse_output_and_get_value(cmd.buffer, mysqld_path, rc= parse_output_and_get_value(cmd.buffer, "Ver",
result, MAX_VERSION_STRING_LENGTH, result, MAX_VERSION_STRING_LENGTH,
GET_LINE); GET_LINE);
......
...@@ -96,9 +96,9 @@ int parse_output_and_get_value(const char *command, const char *word, ...@@ -96,9 +96,9 @@ int parse_output_and_get_value(const char *command, const char *word,
linebuf[sizeof(linebuf) - 1]= '\0'; /* safety */ linebuf[sizeof(linebuf) - 1]= '\0'; /* safety */
/* /*
Compare the start of our line with the word(s) we are looking for. Find the word(s) we are looking for in the line
*/ */
if (!strncmp(word, linep, wordlen)) if ((linep= strstr(linep, word)))
{ {
/* /*
If we have found our word(s), then move linep past the word(s) If we have found our word(s), then move linep past the word(s)
......
...@@ -6774,6 +6774,10 @@ SHOW_VAR status_vars[]= { ...@@ -6774,6 +6774,10 @@ SHOW_VAR status_vars[]= {
static void print_version(void) static void print_version(void)
{ {
set_server_version(); set_server_version();
/*
Note: the instance manager keys off the string 'Ver' so it can find the
version from the output of 'mysqld --version', so don't change it!
*/
printf("%s Ver %s for %s on %s (%s)\n",my_progname, printf("%s Ver %s for %s on %s (%s)\n",my_progname,
server_version,SYSTEM_TYPE,MACHINE_TYPE, MYSQL_COMPILATION_COMMENT); server_version,SYSTEM_TYPE,MACHINE_TYPE, MYSQL_COMPILATION_COMMENT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment