~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sync.cc

  • Committer: Brian Aker
  • Date: 2008-12-02 16:33:43 UTC
  • mfrom: (632.1.19 devel)
  • Revision ID: brian@tangent.org-20081202163343-007ifg17p0lvjga7
Merge from Monty

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