~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_extra.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:
246
246
    share->last_version= 0L;                    /* Impossible version */
247
247
#ifdef __WIN__REMOVE_OBSOLETE_WORKAROUND
248
248
    /* Close the isam and data files as Win32 can't drop an open table */
249
 
    if (flush_key_blocks(share->key_cache, share->kfile,
250
 
                         (function == HA_EXTRA_FORCE_REOPEN ?
251
 
                          FLUSH_RELEASE : FLUSH_IGNORE_CHANGED)))
252
 
    {
253
 
      error=errno;
254
 
      share->changed=1;
255
 
      mi_print_error(info->s, HA_ERR_CRASHED);
256
 
      mi_mark_crashed(info);                    /* Fatal error found */
257
 
    }
258
249
    if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED))
259
250
    {
260
251
      info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED);
290
281
    THR_LOCK_myisam.unlock();
291
282
    break;
292
283
  case HA_EXTRA_FLUSH:
293
 
    if (!share->temporary)
294
 
      flush_key_blocks(share->getKeyCache(), share->kfile, FLUSH_KEEP);
295
284
#ifdef HAVE_PWRITE
296
285
    _mi_decrement_open_count(info);
297
286
#endif