~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_keycache.cc

  • Committer: Monty Taylor
  • Date: 2009-05-09 22:13:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090509221347-l712szviusbobro0
Re-added bitset<> as a replacement for Bitmap<>

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  SYNOPSIS
28
28
    mi_assign_to_key_cache()
29
29
      info          open table
30
 
      key_map       map of indexes to assign to the key cache
31
30
      key_cache_ptr pointer to the key cache handle
32
31
      assign_lock   Mutex to lock during assignment
33
32
 
40
39
 
41
40
  NOTES
42
41
    At present pages for all indexes must be assigned to the same key cache.
43
 
    In future only pages for indexes specified in the key_map parameter
44
 
    of the table will be assigned to the specified key cache.
45
42
 
46
43
  RETURN VALUE
47
44
    0  If a success
48
45
    #  Error code
49
46
*/
50
47
 
51
 
int mi_assign_to_key_cache(MI_INFO *info, uint64_t key_map,
52
 
                           KEY_CACHE *key_cache)
 
48
int mi_assign_to_key_cache(MI_INFO *info, KEY_CACHE *key_cache) 
53
49
{
54
 
  (void)key_map;
55
50
  int error= 0;
56
51
  MYISAM_SHARE* share= info->s;
57
52
 
146
141
    MI_INFO *info= *it;
147
142
    MYISAM_SHARE *share= info->s;
148
143
    if (share->key_cache == old_key_cache)
149
 
      mi_assign_to_key_cache(info, UINT64_MAX, new_key_cache);
 
144
      mi_assign_to_key_cache(info, new_key_cache);
150
145
    ++it;
151
146
  }
152
147