diff options
author | serg@serg.mylan <> | 2003-10-31 10:34:34 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2003-10-31 10:34:34 +0100 |
commit | 74551a72ec4603e1a29f119da5479e70afd7949c (patch) | |
tree | e3649ecfe44ca927dd7369b8cd2116bb28646ad0 /sql/ha_myisammrg.cc | |
parent | e5d60351884b93c81f501f1da056bdccfd2d19d1 (diff) | |
parent | 906ad716cc73b5b1388f761c5f7edbcad2f4c1ca (diff) | |
download | mariadb-git-74551a72ec4603e1a29f119da5479e70afd7949c.tar.gz |
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
Diffstat (limited to 'sql/ha_myisammrg.cc')
-rw-r--r-- | sql/ha_myisammrg.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/ha_myisammrg.cc b/sql/ha_myisammrg.cc index 42c2ba10808..05da214c1d4 100644 --- a/sql/ha_myisammrg.cc +++ b/sql/ha_myisammrg.cc @@ -45,6 +45,12 @@ int ha_myisammrg::open(const char *name, int mode, uint test_if_locked) DBUG_PRINT("info", ("ha_myisammrg::open exit %d", my_errno)); return (my_errno ? my_errno : -1); } + /* Synchronize key cache assignment for the file */ + KEY_CACHE_VAR *key_cache= table->key_cache ? table->key_cache : + &dflt_key_cache_var; + VOID(myrg_extra(file, HA_EXTRA_SET_KEY_CACHE, + (void*) &key_cache->cache)); + DBUG_PRINT("info", ("ha_myisammrg::open myrg_extrafunc...")) myrg_extrafunc(file, query_cache_invalidate_by_MyISAM_filename_ref); if (!(test_if_locked == HA_OPEN_WAIT_IF_LOCKED || |