[packages/percona-server/v5.0.x: 88/202] - one more sourcefile to patch

glen glen at pld-linux.org
Wed Oct 21 16:16:25 CEST 2015


commit 9c463e471f1e6eadf38cda147786cf68ea0b9459
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Oct 27 13:09:31 2008 +0000

    - one more sourcefile to patch
    
    Changed files:
        mysql-errorlog-no-rename.patch -> 1.1.2.1

 mysql-errorlog-no-rename.patch | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
---
diff --git a/mysql-errorlog-no-rename.patch b/mysql-errorlog-no-rename.patch
index 6d5e053..b3c4cf4 100644
--- a/mysql-errorlog-no-rename.patch
+++ b/mysql-errorlog-no-rename.patch
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-server.git/commitdiff/431f68fe79a66d5dfdd53f2655709e6c925fbc22



More information about the pld-cvs-commit mailing list