diff options
author | unknown <guilhem@mysqlwin32.> | 2008-02-19 09:25:31 +0100 |
---|---|---|
committer | unknown <guilhem@mysqlwin32.> | 2008-02-19 09:25:31 +0100 |
commit | b369f21b7bc4157af94cb03a7e613a739b64329f (patch) | |
tree | 0a81fcfcaf2e0e195d7f37dff866c64be3767369 /dbug | |
parent | fa8fad743f78b760cf11d8024dbc4727dbee5575 (diff) | |
download | mariadb-git-b369f21b7bc4157af94cb03a7e613a739b64329f.tar.gz |
Fix for failure of ma_test_loghandler_long-t on Windows
dbug/dbug.c:
importing change from 6.0, which speeds up --debug on Windows (no sync)
storage/maria/unittest/ma_test_loghandler-t.c:
this test needs ~80 open files (logs)
Diffstat (limited to 'dbug')
-rw-r--r-- | dbug/dbug.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index d6f436f5780..59dc649b650 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -1979,12 +1979,7 @@ static void DBUGOpenFile(CODE_STATE *cs, else { newfile= !EXISTS(name); - if (!(fp= fopen(name, -#if defined(MSDOS) || defined(__WIN__) - append ? "a+c" : "wc" -#else - append ? "a+" : "w" -#endif + if (!(fp= fopen(name, append ? "a+" : "w"))) ))) { (void) fprintf(stderr, ERR_OPEN, cs->process, name); |