~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_dup.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:
21
21
File my_dup(File file, myf MyFlags)
22
22
{
23
23
  File fd;
24
 
  const char *filename;
25
 
  fd = dup(file);
26
 
  filename= (((uint32_t) file < my_file_limit) ?
27
 
             my_file_info[(int) file].name : "Unknown");
28
 
  return(my_register_filename(fd, filename, FILE_BY_DUP,
29
 
                                   EE_FILENOTFOUND, MyFlags));
 
24
  fd= dup(file);
 
25
 
 
26
 
 
27
  return(my_register_filename(fd, "Unknown", EE_FILENOTFOUND, MyFlags));
30
28
}