~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sync.cc

  • Committer: Stewart Smith
  • Date: 2009-06-16 03:02:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1065.
  • Revision ID: stewart@flamingspork.com-20090616030259-tn2thqrajk6cappd
ER_NISAMCHK is unused, mark it as so. Thanks to Paul DuBois for researching this for MySQL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "mysys_priv.h"
17
 
#include "mysys_err.h"
 
16
#include "mysys/mysys_priv.h"
 
17
#include "mysys/mysys_err.h"
18
18
#include <errno.h>
19
19
 
20
20
/*
76
76
      res= 0;
77
77
    }
78
78
    else if (my_flags & MY_WME)
79
 
      my_error(EE_SYNC, MYF(ME_BELL+ME_WAITTANG), my_filename(fd), my_errno);
 
79
      my_error(EE_SYNC, MYF(ME_BELL+ME_WAITTANG), "unknown", my_errno);
80
80
  }
81
81
  return(res);
82
82
} /* my_sync */
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