]> git.pld-linux.org Git - packages/mysql.git/blob - mysql-errorlog-no-rename.patch
This commit was manufactured by cvs2git to create branch 'MYSQL_5_0'.
[packages/mysql.git] / mysql-errorlog-no-rename.patch
1 --- mysql-5.0.68/libmysqld/log.cc~      2008-08-13 12:14:31.000000000 +0300
2 +++ mysql-5.0.68/libmysqld/log.cc       2008-10-27 15:02:24.136737667 +0200
3 @@ -2543,11 +2543,11 @@
4    bool result=0;
5    if (opt_error_log)
6    {
7 +    VOID(pthread_mutex_lock(&LOCK_error_log));
8 +#ifdef __WIN__
9      char err_renamed[FN_REFLEN], *end;
10      end= strmake(err_renamed,log_error_file,FN_REFLEN-4);
11      strmov(end, "-old");
12 -    VOID(pthread_mutex_lock(&LOCK_error_log));
13 -#ifdef __WIN__
14      char err_temp[FN_REFLEN+4];
15      /*
16       On Windows is necessary a temporary file for to rename
17 @@ -2575,7 +2575,6 @@
18      else
19       result= 1;
20  #else
21 -   my_rename(log_error_file,err_renamed,MYF(0));
22     if (freopen(log_error_file,"a+",stdout))
23       freopen(log_error_file,"a+",stderr);
24     else
This page took 0.0342 seconds and 3 git commands to generate.