~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-08 19:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090508190739-rwas5y9xjg1a92p6
Reverted a crap-ton of padraig's work.

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
30
31
      key_cache_ptr pointer to the key cache handle
31
32
      assign_lock   Mutex to lock during assignment
32
33
 
39
40
 
40
41
  NOTES
41
42
    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.
42
45
 
43
46
  RETURN VALUE
44
47
    0  If a success
45
48
    #  Error code
46
49
*/
47
50
 
48
 
int mi_assign_to_key_cache(MI_INFO *info, KEY_CACHE *key_cache) 
 
51
int mi_assign_to_key_cache(MI_INFO *info, uint64_t key_map,
 
52
                           KEY_CACHE *key_cache)
49
53
{
 
54
  (void)key_map;
50
55
  int error= 0;
51
56
  MYISAM_SHARE* share= info->s;
52
57
 
141
146
    MI_INFO *info= *it;
142
147
    MYISAM_SHARE *share= info->s;
143
148
    if (share->key_cache == old_key_cache)
144
 
      mi_assign_to_key_cache(info, new_key_cache);
 
149
      mi_assign_to_key_cache(info, UINT64_MAX, new_key_cache);
145
150
    ++it;
146
151
  }
147
152