[packages/percona-server/v5.0.x: 87/202] This commit was manufactured by cvs2git to create branch 'MYSQL_5_0'.
glen
glen at pld-linux.org
Wed Oct 21 16:16:20 CEST 2015
commit b48a4bd646bdee286485ab4c5c2465bc859b6c8e
Author: cvs2git <feedback at pld-linux.org>
Date: Mon Oct 27 13:03:25 2008 +0000
This commit was manufactured by cvs2git to create branch 'MYSQL_5_0'.
Cherrypick from master 2008-10-27 13:03:25 UTC Elan Ruusamäe <glen at pld-linux.org> '- do not rename error log with -old suffix. our logrotate does the renaming and moving':
mysql-errorlog-no-rename.patch -> 1.1
mysql.logrotate -> 1.27
mysql-errorlog-no-rename.patch | 24 ++++++++++++++++++++++++
mysql.logrotate | 27 +++++++++++++++++++++++++++
2 files changed, 51 insertions(+)
---
diff --git a/mysql-errorlog-no-rename.patch b/mysql-errorlog-no-rename.patch
new file mode 100644
index 0000000..6d5e053
--- /dev/null
+++ b/mysql-errorlog-no-rename.patch
@@ -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
diff --git a/mysql.logrotate b/mysql.logrotate
new file mode 100644
index 0000000..6a4f7c0
--- /dev/null
+++ b/mysql.logrotate
@@ -0,0 +1,27 @@
+# This section is used from mysqld.conf for logrotation.
+# Be sure that the password in config matches the actual one.
+#
+# ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
+#
+# [mysqladmin]
+# user = mysql_sysadmin
+# password = <secret>
+#
+# where "<secret>" is the password.
+#
+# You must do this for every active cluster defined in /etc/mysql/clusters.conf
+
+/var/log/mysql/query.log
+/var/log/mysql/mysqld.log
+/var/log/mysql/slow.log
+/var/log/mysql/update*
+{
+ olddir /var/log/archive/mysql
+ notifempty
+ missingok
+ create 640 mysql mysql
+ sharedscripts
+ postrotate
+ /sbin/service mysql flush-logs
+ endscript
+}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/percona-server.git/commitdiff/431f68fe79a66d5dfdd53f2655709e6c925fbc22
More information about the pld-cvs-commit
mailing list