~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_range.c

  • Committer: Brian Aker
  • Date: 2009-02-20 22:48:37 UTC
  • Revision ID: brian@tangent.org-20090220224837-fw5wrf46n4ru3e6a
First pass of stripping uint

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    HA_POS_ERROR  error (or we can't estimate number of rows)
43
43
    number        Estimated number of rows
44
44
*/
45
 
  
 
45
 
46
46
ha_rows mi_records_in_range(MI_INFO *info, int inx,
47
47
                            key_range *min_key, key_range *max_key)
48
48
{
55
55
    return(HA_POS_ERROR);
56
56
  info->update&= (HA_STATE_CHANGED+HA_STATE_ROW_CHANGED);
57
57
  if (info->s->concurrent_insert)
58
 
    rw_rdlock(&info->s->key_root_lock[inx]);
 
58
    pthread_rwlock_rdlock(&info->s->key_root_lock[inx]);
59
59
 
60
60
  switch(info->s->keyinfo[inx].key_alg){
61
61
  case HA_KEY_ALG_BTREE:
73
73
  }
74
74
 
75
75
  if (info->s->concurrent_insert)
76
 
    rw_unlock(&info->s->key_root_lock[inx]);
 
76
    pthread_rwlock_unlock(&info->s->key_root_lock[inx]);
77
77
  fast_mi_writeinfo(info);
78
78
 
79
79
  return(res);