~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_panic.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
      if (info->s->options & HA_OPTION_READ_ONLY_DATA)
49
49
        break;
50
50
#endif
51
 
      if (flush_key_blocks(info->s->getKeyCache(), info->s->kfile, FLUSH_RELEASE))
52
 
        error=errno;
53
51
      if (info->opt_flag & WRITE_CACHE_USED)
54
 
        if (flush_io_cache(&info->rec_cache))
 
52
        if (info->rec_cache.flush())
55
53
          error=errno;
56
54
      if (info->opt_flag & READ_CACHE_USED)
57
55
      {
58
 
        if (flush_io_cache(&info->rec_cache))
 
56
        if (info->rec_cache.flush())
59
57
          error=errno;
60
58
        info->rec_cache.reinit_io_cache(internal::READ_CACHE,0, (bool) (info->lock_type != F_UNLCK),1);
61
59
      }