~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_open.cc

  • Committer: jay
  • Date: 2008-12-23 00:18:10 UTC
  • Revision ID: jay@piggy.tangent.org-20081223001810-026ibij22q2842k1
Had a --regex-replace by accident. Should have been --replace_column call.  Only showed up in make test, not running single test, because InnoDB key numbers were different with multiple test running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "mysys_priv.h"
17
17
#include "mysys_err.h"
18
 
#include <my_dir.h>
 
18
#include "my_dir.h"
 
19
 
19
20
#include <errno.h>
 
21
#include <stdlib.h>
 
22
#include <string.h>
20
23
 
21
24
/*
22
25
  Open a file
24
27
  SYNOPSIS
25
28
    my_open()
26
29
      FileName  Fully qualified file name
27
 
      Flags     Read | write 
 
30
      Flags     Read | write
28
31
      MyFlags   Special flags
29
32
 
30
33
  RETURN VALUE
91
94
 
92
95
/*
93
96
  Register file in my_file_info[]
94
 
   
 
97
 
95
98
  SYNOPSIS
96
99
    my_register_filename()
97
100
    fd                     File number opened, -1 if error on open
123
126
    else
124
127
    {
125
128
      pthread_mutex_lock(&THR_LOCK_open);
126
 
      if ((my_file_info[fd].name = (char*) my_strdup(FileName,MyFlags)))
 
129
      if ((my_file_info[fd].name = (char*) strdup(FileName)))
127
130
      {
128
131
        my_file_opened++;
129
132
        my_file_total_opened++;