~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sync.c

  • Committer: Brian Aker
  • Date: 2008-08-11 04:55:59 UTC
  • Revision ID: brian@tangent.org-20080811045559-azgfc343y0igyzsz
ulong cleanup, remove log code from myisam.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
  RETURN
95
95
    0 if ok, !=0 if error
96
96
*/
 
97
int my_sync_dir(const char *dir_name __attribute__((unused)),
 
98
                myf my_flags __attribute__((unused)))
 
99
{
97
100
#ifdef NEED_EXPLICIT_SYNC_DIR
98
 
int my_sync_dir(const char *dir_name, myf my_flags)
99
 
{
100
101
  File dir_fd;
101
102
  int res= 0;
102
103
  const char *correct_dir_name;
116
117
  else
117
118
    res= 1;
118
119
  return(res);
119
 
}
120
120
#else
121
 
int my_sync_dir(const char *, myf)
122
 
{
123
121
  return 0;
124
 
}
125
122
#endif
 
123
}
126
124
 
127
125
 
128
126
/*
136
134
  RETURN
137
135
    0 if ok, !=0 if error
138
136
*/
 
137
int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
 
138
                        myf my_flags __attribute__((unused)))
 
139
{
139
140
#ifdef NEED_EXPLICIT_SYNC_DIR
140
 
int my_sync_dir_by_file(const char *file_name, myf my_flags)
141
 
{
142
141
  char dir_name[FN_REFLEN];
143
142
  size_t dir_name_length;
144
143
  dirname_part(dir_name, file_name, &dir_name_length);
145
144
  return my_sync_dir(dir_name, my_flags);
146
 
}
147
145
#else
148
 
int my_sync_dir_by_file(const char *, myf)
149
 
{
150
146
  return 0;
151
 
}
152
147
#endif
 
148
}
153
149