]> git.pld-linux.org Git - packages/mysql.git/blob - mysql-errorlog-no-rename.patch
- up to 5.1.44
[packages/mysql.git] / mysql-errorlog-no-rename.patch
1 --- mysql-5.1.43/sql/log.cc~    2010-01-15 19:17:28.000000000 +0200
2 +++ mysql-5.1.43/sql/log.cc     2010-02-01 14:53:55.026725423 +0200
3 @@ -5020,11 +5042,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-5);
11      strmov(end, "-old");
12 -    VOID(pthread_mutex_lock(&LOCK_error_log));
13 -#ifdef __WIN__
14      char err_temp[FN_REFLEN+5];
15      /*
16       On Windows is necessary a temporary file for to rename
17 @@ -5060,7 +5082,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     {
24       FILE *reopen;
This page took 0.034952 seconds and 3 git commands to generate.