Commit b369f21b authored by unknown's avatar unknown

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)
parent fa8fad74
......@@ -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);
......
......@@ -151,6 +151,11 @@ int main(int argc __attribute__((unused)), char *argv[])
MY_INIT(argv[0]);
if (my_set_max_open_files(100) < 100)
{
fprintf(stderr, "can't allocate 100 file descriptors\n");
exit(1);
}
bzero(&pagecache, sizeof(pagecache));
maria_data_root= (char *)".";
if (maria_log_remove())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment