~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_create.cc

  • Committer: Brian Aker
  • Date: 2009-05-23 16:15:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1038.
  • Revision ID: brian@gaz-20090523161500-nldnoav8b7x1iz1b
Remove locks around my_open(). Open file counts are now "best effort" (not
that they were ever exact, since Innodb didn't use the calls).

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    fd= -1;
48
48
  }
49
49
 
50
 
  rc= my_register_filename(fd, FileName, FILE_BY_CREATE,
51
 
                           EE_CANTCREATEFILE, MyFlags);
 
50
  rc= my_register_filename(fd, FileName, EE_CANTCREATEFILE, MyFlags);
52
51
  /*
53
52
    my_register_filename() may fail on some platforms even if the call to
54
53
    *open() above succeeds. In this case, don't leave the stale file because