]> git.pld-linux.org Git - packages/mysql.git/blob - mysql-errorlog-no-rename.patch
- up to 5.1.42
[packages/mysql.git] / mysql-errorlog-no-rename.patch
1 --- mysql-5.1.28-rc/sql/log.cc~ 2008-08-28 18:40:55.000000000 +0300
2 +++ mysql-5.1.28-rc/sql/log.cc  2008-10-27 15:06:13.528944807 +0200
3 @@ -4606,11 +4606,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 @@ -4642,7 +4642,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.03202 seconds and 3 git commands to generate.