SOURCES: mysql-errorlog-no-rename.patch (NEW) - do not rename error log wit...
glen
glen at pld-linux.org
Mon Oct 27 14:03:31 CET 2008
Author: glen Date: Mon Oct 27 13:03:30 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- do not rename error log with -old suffix. our logrotate does the renaming and moving
---- Files affected:
SOURCES:
mysql-errorlog-no-rename.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/mysql-errorlog-no-rename.patch
diff -u /dev/null SOURCES/mysql-errorlog-no-rename.patch:1.1
--- /dev/null Mon Oct 27 14:03:31 2008
+++ SOURCES/mysql-errorlog-no-rename.patch Mon Oct 27 14:03:25 2008
@@ -0,0 +1,24 @@
+--- mysql-5.0.68/libmysqld/log.cc~ 2008-08-13 12:14:31.000000000 +0300
++++ mysql-5.0.68/libmysqld/log.cc 2008-10-27 15:02:24.136737667 +0200
+@@ -2543,11 +2543,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
+@@ -2575,7 +2575,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
================================================================
More information about the pld-cvs-commit
mailing list