~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_rnext.cc

  • Committer: Brian Aker
  • Date: 2010-08-11 18:47:39 UTC
  • mfrom: (1689.2.28 rollup)
  • Revision ID: brian@gaz-20100811184739-ey7llnsu12gfv6hb
No longer concurrent, no longer need these locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
  if (fast_mi_readinfo(info))
40
40
    return(errno);
41
 
  if (info->s->concurrent_insert)
42
 
    pthread_rwlock_rdlock(&info->s->key_root_lock[inx]);
43
41
  changed=_mi_test_if_changed(info);
44
42
  if (!flag)
45
43
  {
83
81
    }
84
82
    if (!error && res == 2)
85
83
    {
86
 
      if (info->s->concurrent_insert)
87
 
        pthread_rwlock_unlock(&info->s->key_root_lock[inx]);
88
84
      info->lastpos= HA_OFFSET_ERROR;
89
85
      return(errno= HA_ERR_END_OF_FILE);
90
86
    }
91
87
  }
92
88
 
93
 
  if (info->s->concurrent_insert)
94
 
    pthread_rwlock_unlock(&info->s->key_root_lock[inx]);
95
 
 
96
 
        /* Don't clear if database-changed */
 
89
  /* Don't clear if database-changed */
97
90
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
98
91
  info->update|= HA_STATE_NEXT_FOUND;
99
92