List:Internals« Previous MessageNext Message »
From:msvensson Date:September 23 2005 7:47am
Subject:bk commit into 4.1 tree (msvensson:1.2412) BUG#7037
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2412 05/09/23 09:47:41 msvensson@neptunus.(none) +1 -0
  BUG#7037 MySQL Bugs: #7037: Test "mysql_protocols" fails on Solaris 8 + 9 /x86

  mysys/my_init.c
    1.40 05/09/23 09:47:37 msvensson@neptunus.(none) +14 -6
    Changed implementation slightly to use a local variable for keeping track of wheter we should print to the info_file even if the flag is not set in infoflag
    Explicitly turn off print_info if there is no DBUG_FILE

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	neptunus.(none)
# Root:	/home/msvensson/mysql/fix_mysqltest/my41-fix_mysqltest

--- 1.39/mysys/my_init.c	2005-02-28 10:59:41 +01:00
+++ 1.40/mysys/my_init.c	2005-09-23 09:47:37 +02:00
@@ -127,11 +127,18 @@
 
 void my_end(int infoflag)
 {
-  FILE *info_file;
-  if (!(info_file=DBUG_FILE))
-    info_file=stderr;
-  DBUG_PRINT("info",("Shutting down"));
-  if (infoflag & MY_CHECK_ERROR || info_file != stderr)
+  DBUG_ENTER("my_end");
+  FILE *info_file= DBUG_FILE;
+  bool print_info= (info_file != stderr);
+  if (!info_file)
+  {
+    info_file= stderr;
+    print_info= 0;
+  }
+
+  DBUG_PRINT("info",("Shutting down: print_info: %d", print_info));
+  if ((infoflag & MY_CHECK_ERROR) || print_info)
+
   {					/* Test if some file is left open */
     if (my_file_opened | my_stream_opened)
     {
@@ -141,7 +148,8 @@
     }
   }
   my_once_free();
-  if (infoflag & MY_GIVE_INFO || info_file != stderr)
+
+  if ((infoflag & MY_GIVE_INFO) || print_info)
   {
 #ifdef HAVE_GETRUSAGE
     struct rusage rus;
Thread
bk commit into 4.1 tree (msvensson:1.2412) BUG#7037msvensson23 Sep