~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_cache.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:
56
56
{
57
57
  char name_buff[FN_REFLEN];
58
58
  int error=1;
59
 
  if ((cache->file=create_temp_file(name_buff, cache->dir, cache->prefix,
60
 
                                    (O_RDWR | O_TRUNC),
61
 
                                    MYF(MY_WME))) >= 0)
 
59
  if ((cache->file=create_temp_file(name_buff, cache->dir, cache->prefix, MYF(MY_WME))) >= 0)
62
60
  {
63
61
    error=0;
64
62
    my_delete(name_buff,MYF(MY_WME | ME_NOINPUT));