~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_delete_all.c

  • Committer: Brian Aker
  • Date: 2008-07-01 08:15:04 UTC
  • Revision ID: brian@tangent.org-20080701081504-qn3jzgsbb2twnchs
Large file and ftruncate() support

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