]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- do not rename error log with -old suffix. our logrotate does the renaming and moving
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 27 Oct 2008 13:03:25 +0000 (13:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-errorlog-no-rename.patch -> 1.1

mysql-errorlog-no-rename.patch [new file with mode: 0644]

diff --git a/mysql-errorlog-no-rename.patch b/mysql-errorlog-no-rename.patch
new file mode 100644 (file)
index 0000000..6d5e053
--- /dev/null
@@ -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
This page took 0.045517 seconds and 4 git commands to generate.