~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_range.c

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-21 20:26:28 UTC
  • mto: (960.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: osullivan.padraig@gmail.com-20090321202628-nh6qsi825m4d4av6
Removing the queues.[h,cc] files from the mysys directory. The only place
where they are needed now is in the MyISAM storage engine. Thus, I moved the
files there and updated the files in the MyISAM storage engine
appropriately.

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);