]>
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 | |
a9cbc013 | 3 | @@ -5021,10 +5021,10 @@ |
5dcb603c ER |
4 | if (opt_error_log) |
5 | { | |
5dcb603c | 6 | char err_renamed[FN_REFLEN], *end; |
a9cbc013 AM |
7 | - end= strmake(err_renamed,log_error_file,FN_REFLEN-5); |
8 | - strmov(end, "-old"); | |
9 | VOID(pthread_mutex_lock(&LOCK_error_log)); | |
10 | #ifdef __WIN__ | |
11 | + end= strmake(err_renamed,log_error_file,FN_REFLEN-5); | |
12 | + strmov(end, "-old"); | |
13 | char err_temp[FN_REFLEN+5]; | |
5dcb603c ER |
14 | /* |
15 | On Windows is necessary a temporary file for to rename | |
a9cbc013 | 16 | @@ -5060,7 +5059,6 @@ |
5dcb603c ER |
17 | else |
18 | result= 1; | |
19 | #else | |
20 | - my_rename(log_error_file,err_renamed,MYF(0)); | |
21 | if (freopen(log_error_file,"a+",stdout)) | |
a9cbc013 AM |
22 | { |
23 | FILE *reopen; | |
24 |