~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/ha_tina.cc

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:33:25 UTC
  • mfrom: (12.2.8 drizzle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630053325-mwrv6bjaufcpvj8n
merge my work

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
{
137
137
  TINA_SHARE *share;
138
138
  char meta_file_name[FN_REFLEN];
139
 
  MY_STAT file_stat;                /* Stat information for the data file */
 
139
  struct stat file_stat;
140
140
  char *tmp_name;
141
141
  uint length;
142
142
 
175
175
    fn_format(meta_file_name, table_name, "", CSM_EXT,
176
176
              MY_REPLACE_EXT|MY_UNPACK_FILENAME);
177
177
 
178
 
    if (my_stat(share->data_file_name, &file_stat, MYF(MY_WME)) == NULL)
 
178
    if (stat(share->data_file_name, &file_stat))
179
179
      goto error;
180
180
    share->saved_data_file_length= file_stat.st_size;
181
181