~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_create.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:
811
811
 
812
812
        /* Enlarge files */
813
813
  DBUG_PRINT("info", ("enlarge to keystart: %lu", (ulong) share.base.keystart));
814
 
  if (my_chsize(file,(ulong) share.base.keystart,0,MYF(0)))
 
814
  if (ftruncate(file, (off_t) share.base.keystart))
815
815
    goto err;
816
816
 
817
817
  if (! (flags & HA_DONT_TOUCH_DATA))
818
818
  {
819
819
#ifdef USE_RELOC
820
 
    if (my_chsize(dfile,share.base.min_pack_length*ci->reloc_rows,0,MYF(0)))
 
820
    if (ftruncate(dfile,share.base.min_pack_length*ci->reloc_rows,))
821
821
      goto err;
822
822
#endif
823
823
    errpos=2;