List:Commits« Previous MessageNext Message »
From:Ignacio Galarza Date:August 22 2006 12:29am
Subject:bk commit into 5.0 tree (iggy:1.2247) BUG#21757
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of iggy. When iggy 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@stripped, 2006-08-21 20:29:11-04:00, iggy@stripped +1 -0
  Bug#21757: mysql_client_test fails in testcase when reading master.log file

  tests/mysql_client_test.c@stripped, 2006-08-21 20:29:05-04:00, iggy@stripped +2 -2
    Replace fopen with my_fopen and specify O_BINARY. Replace fclose with my_fclose.

# 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:	iggy
# Host:	rolltop.ignatz42.dyndns.org
# Root:	/mnt/storeage/mysql-5.0-maint_21757

--- 1.203/tests/mysql_client_test.c	2006-08-21 20:29:22 -04:00
+++ 1.204/tests/mysql_client_test.c	2006-08-21 20:29:22 -04:00
@@ -14950,7 +14950,7 @@
   strcpy(master_log_filename, opt_vardir);
   strcat(master_log_filename, "/log/master.log");
   printf("Opening '%s'\n", master_log_filename);
-  log_file= fopen(master_log_filename, "r");
+  log_file= my_fopen(master_log_filename, (int) (O_RDONLY | O_BINARY), MYF(MY_WME));
   free(master_log_filename);
 
   if (log_file != NULL) {
@@ -14997,7 +14997,7 @@
   }
 
   if (log_file != NULL)
-    fclose(log_file);
+    my_fclose(log_file, MYF(0));
 
 }
 
Thread
bk commit into 5.0 tree (iggy:1.2247) BUG#21757Ignacio Galarza22 Aug