~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_locking.cc

  • Committer: Mark Atwood
  • Date: 2011-08-17 06:10:57 UTC
  • Revision ID: me@mark.atwood.name-20110817061057-7hsj5c0dc4n3grrr
link docs/ipv6_data_type.rst to TOC in docs/columntypes.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
      else
64
64
        count= --share->w_locks;
65
65
      --share->tot_locks;
 
66
      if (info->lock_type == F_WRLCK && !share->w_locks &&
 
67
          !share->delay_key_write && flush_key_blocks(share->getKeyCache(),
 
68
                                                      share->kfile,FLUSH_KEEP))
 
69
      {
 
70
        error=errno;
 
71
        mi_print_error(info->s, HA_ERR_CRASHED);
 
72
        mi_mark_crashed(info);          /* Mark that table must be checked */
 
73
      }
66
74
      if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED))
67
75
      {
68
76
        if (info->rec_cache.end_io_cache())
293
301
      share->state.unique  != info->last_unique ||
294
302
      share->state.update_count != info->last_loop)
295
303
  {                                             /* Keyfile has changed */
 
304
    if (share->state.process != share->this_process)
 
305
      flush_key_blocks(share->getKeyCache(), share->kfile, FLUSH_RELEASE);
296
306
    share->last_process=share->state.process;
297
307
    info->last_unique=  share->state.unique;
298
308
    info->last_loop=    share->state.update_count;