packages: mysql/mysql-errorlog-no-rename.patch - reviewed for 5.1.43

glen glen at pld-linux.org
Mon Feb 1 13:59:04 CET 2010


Author: glen                         Date: Mon Feb  1 12:59:04 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- reviewed for 5.1.43

---- Files affected:
packages/mysql:
   mysql-errorlog-no-rename.patch (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/mysql/mysql-errorlog-no-rename.patch
diff -u packages/mysql/mysql-errorlog-no-rename.patch:1.3 packages/mysql/mysql-errorlog-no-rename.patch:1.4
--- packages/mysql/mysql-errorlog-no-rename.patch:1.3	Sun Jan 31 22:58:09 2010
+++ packages/mysql/mysql-errorlog-no-rename.patch	Mon Feb  1 13:58:59 2010
@@ -1,19 +1,20 @@
---- mysql-5.1.28-rc/sql/log.cc~	2008-08-28 18:40:55.000000000 +0300
-+++ mysql-5.1.28-rc/sql/log.cc	2008-10-27 15:06:13.528944807 +0200
-@@ -5021,10 +5021,10 @@
+--- mysql-5.1.43/sql/log.cc~	2010-01-15 19:17:28.000000000 +0200
++++ mysql-5.1.43/sql/log.cc	2010-02-01 14:53:55.026725423 +0200
+@@ -5020,11 +5042,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-5);
--    strmov(end, "-old");
-     VOID(pthread_mutex_lock(&LOCK_error_log));
- #ifdef __WIN__
-+    end= strmake(err_renamed,log_error_file,FN_REFLEN-5);
-+    strmov(end, "-old");
+     end= strmake(err_renamed,log_error_file,FN_REFLEN-5);
+     strmov(end, "-old");
+-    VOID(pthread_mutex_lock(&LOCK_error_log));
+-#ifdef __WIN__
      char err_temp[FN_REFLEN+5];
      /*
       On Windows is necessary a temporary file for to rename
-@@ -5060,7 +5059,6 @@
+@@ -5060,7 +5082,6 @@
      else
       result= 1;
  #else
@@ -21,4 +22,3 @@
     if (freopen(log_error_file,"a+",stdout))
     {
       FILE *reopen;
-
================================================================

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



More information about the pld-cvs-commit mailing list