1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
SCCS merged


dbug/dbug.c:
  SCCS merged
This commit is contained in:
unknown
2008-02-19 09:32:10 +01:00
2 changed files with 6 additions and 6 deletions

View File

@ -1979,12 +1979,7 @@ static void DBUGOpenFile(CODE_STATE *cs,
else else
{ {
newfile= !EXISTS(name); newfile= !EXISTS(name);
if (!(fp= fopen(name, if (!(fp= fopen(name, append ? "a+" : "w")))
#if defined(MSDOS) || defined(__WIN__)
append ? "a+c" : "wc"
#else
append ? "a+" : "w"
#endif
))) )))
{ {
(void) fprintf(stderr, ERR_OPEN, cs->process, name); (void) fprintf(stderr, ERR_OPEN, cs->process, name);

View File

@ -151,6 +151,11 @@ int main(int argc __attribute__((unused)), char *argv[])
MY_INIT(argv[0]); 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)); bzero(&pagecache, sizeof(pagecache));
maria_data_root= (char *)"."; maria_data_root= (char *)".";
if (maria_log_remove()) if (maria_log_remove())