SOURCES (MYSQL_5_0): mysql-errorlog-no-rename.patch - one more sourcefile t...

glen glen at pld-linux.org
Mon Oct 27 14:09:36 CET 2008


Author: glen                         Date: Mon Oct 27 13:09:36 2008 GMT
Module: SOURCES                       Tag: MYSQL_5_0
---- Log message:
- one more sourcefile to patch

---- Files affected:
SOURCES:
   mysql-errorlog-no-rename.patch (1.1 -> 1.1.2.1) 

---- Diffs:

================================================================
Index: SOURCES/mysql-errorlog-no-rename.patch
diff -u SOURCES/mysql-errorlog-no-rename.patch:1.1 SOURCES/mysql-errorlog-no-rename.patch:1.1.2.1
--- SOURCES/mysql-errorlog-no-rename.patch:1.1	Mon Oct 27 14:03:25 2008
+++ SOURCES/mysql-errorlog-no-rename.patch	Mon Oct 27 14:09:31 2008
@@ -22,3 +22,27 @@
     if (freopen(log_error_file,"a+",stdout))
       freopen(log_error_file,"a+",stderr);
     else
+--- mysql-5.0.68/sql/log.cc~	2008-10-27 13:41:07.000000000 +0200
++++ mysql-5.0.68/sql/log.cc	2008-10-27 15:07:07.918167174 +0200
+@@ -2592,11 +2592,11 @@
+   bool result=0;
+   if (opt_error_log)
+   {
++    VOID(pthread_mutex_lock(&LOCK_error_log));
++#ifdef __WIN__
+     char err_renamed[FN_REFLEN], *end;
+     end= strmake(err_renamed,log_error_file,FN_REFLEN-4);
+     strmov(end, "-old");
+-    VOID(pthread_mutex_lock(&LOCK_error_log));
+-#ifdef __WIN__
+     char err_temp[FN_REFLEN+4];
+     /*
+      On Windows is necessary a temporary file for to rename
+@@ -2624,7 +2624,6 @@
+     else
+      result= 1;
+ #else
+-   my_rename(log_error_file,err_renamed,MYF(0));
+    if (freopen(log_error_file,"a+",stdout))
+      freopen(log_error_file,"a+",stderr);
+    else
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mysql-errorlog-no-rename.patch?r1=1.1&r2=1.1.2.1&f=u



More information about the pld-cvs-commit mailing list