~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_delete_all.c

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:
57
57
  if (share->file_map)
58
58
    _mi_unmap_file(info);
59
59
#endif
60
 
  if (my_chsize(info->dfile, 0, 0, MYF(MY_WME)) ||
61
 
      my_chsize(share->kfile, share->base.keystart, 0, MYF(MY_WME))  )
 
60
  if (ftruncate(info->dfile, 0) || ftruncate(share->kfile, share->base.keystart))
62
61
    goto err;
63
62
  VOID(_mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE));
64
63
#ifdef HAVE_MMAP