~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_locking.cc

  • Committer: Brian Aker
  • Date: 2009-08-15 00:59:30 UTC
  • mfrom: (1115.1.7 merge)
  • Revision ID: brian@gaz-20090815005930-q47yenjrq1esiwsz
Merge of Trond + Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
          if (mi_state_info_write(share->kfile, &share->state, 1))
100
100
            error=my_errno;
101
101
          share->changed=0;
102
 
          if (myisam_flush)
103
 
          {
104
 
            if (my_sync(share->kfile, MYF(0)))
105
 
              error= my_errno;
106
 
            if (my_sync(info->dfile, MYF(0)))
107
 
              error= my_errno;
108
 
          }
109
 
          else
110
 
            share->not_flushed=1;
 
102
          share->not_flushed=1;
111
103
          if (error)
112
104
          {
113
105
            mi_print_error(info->s, HA_ERR_CRASHED);
390
382
      share->state.update_count= info->last_loop= ++info->this_loop;
391
383
      if ((error=mi_state_info_write(share->kfile, &share->state, 1)))
392
384
        olderror=my_errno;
393
 
#ifdef __WIN__
394
 
      if (myisam_flush)
395
 
      {
396
 
        _commit(share->kfile);
397
 
        _commit(info->dfile);
398
 
      }
399
 
#endif
400
385
    }
401
386
    my_errno=olderror;
402
387
  }