~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_range.cc

  • Committer: Brian Aker
  • Date: 2010-08-11 16:49:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1702.
  • Revision ID: brian@gaz-20100811164934-z6mqjj4o3zkwq4o6
More lock removal from myisam.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
  if (fast_mi_readinfo(info))
57
57
    return(HA_POS_ERROR);
58
58
  info->update&= (HA_STATE_CHANGED+HA_STATE_ROW_CHANGED);
59
 
  if (info->s->concurrent_insert)
60
 
    pthread_rwlock_rdlock(&info->s->key_root_lock[inx]);
61
59
 
62
60
  switch(info->s->keyinfo[inx].key_alg){
63
61
  case HA_KEY_ALG_BTREE:
74
72
      res=HA_POS_ERROR;
75
73
  }
76
74
 
77
 
  if (info->s->concurrent_insert)
78
 
    pthread_rwlock_unlock(&info->s->key_root_lock[inx]);
79
75
  fast_mi_writeinfo(info);
80
76
 
81
77
  return(res);