]>
Commit | Line | Data |
---|---|---|
90d640e8 ER |
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 @@ | |
5dcb603c ER |
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 | |
90d640e8 | 17 | @@ -4642,7 +4642,6 @@ |
5dcb603c ER |
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 |