~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_delete_all.c

  • Committer: Monty
  • Date: 2008-10-02 05:41:33 UTC
  • mfrom: (398.1.10 codestyle)
  • Revision ID: mordred@scylla.inaugust.com-20081002054133-tyxv5bmqpazfaqqi
Merged up to 408 of stdint-includes-fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
  flush_key_blocks(share->key_cache, share->kfile, FLUSH_IGNORE_CHANGED);
54
54
  if (ftruncate(info->dfile, 0) || ftruncate(share->kfile, share->base.keystart))
55
55
    goto err;
56
 
  VOID(_mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE));
 
56
  _mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE);
57
57
  return(0);
58
58
 
59
59
err:
60
60
  {
61
61
    int save_errno=my_errno;
62
 
    VOID(_mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE));
 
62
    _mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE);
63
63
    info->update|=HA_STATE_WRITTEN;     /* Buffer changed */
64
64
    return(my_errno=save_errno);
65
65
  }