~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/log.cc

Merged in changes. 
Edited a the comment test case so deal with our version bump.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2044
2044
      goto err;
2045
2045
  }
2046
2046
  /* The following will either truncate the file or fill the end with \n' */
2047
 
  if (my_chsize(file, offset - init_offset, '\n', MYF(MY_WME)) ||
2048
 
      my_sync(file, MYF(MY_WME)))
 
2047
  if (ftruncate(file, offset - init_offset) || my_sync(file, MYF(MY_WME)))
2049
2048
    goto err;
2050
2049
 
2051
2050
  /* Reset data in old index cache */
4190
4189
      goto err;
4191
4190
    inited=1;
4192
4191
    file_length= opt_tc_log_size;
4193
 
    if (my_chsize(fd, file_length, 0, MYF(MY_WME)))
 
4192
    if (ftruncate(fd, file_length))
4194
4193
      goto err;
4195
4194
  }
4196
4195
  else