~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_delete_all.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-22 13:44:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2414.
  • Revision ID: olafvdspek@gmail.com-20110822134406-r6z3npv2pqk239qz
Remove keycache

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    If we are using delayed keys or if the user has done changes to the tables
51
51
    since it was locked then there may be key blocks in the key cache
52
52
  */
53
 
  flush_key_blocks(share->getKeyCache(), share->kfile, FLUSH_IGNORE_CHANGED);
54
53
  if (ftruncate(info->dfile, 0) || ftruncate(share->kfile, share->base.keystart))
55
54
    goto err;
56
55
  _mi_writeinfo(info,WRITEINFO_UPDATE_KEYFILE);