diff options
author | unknown <jani@rhols221.adsl.netsonic.fi> | 2002-06-28 19:30:09 +0300 |
---|---|---|
committer | unknown <jani@rhols221.adsl.netsonic.fi> | 2002-06-28 19:30:09 +0300 |
commit | e0d8d62e3934e85f2fc55e707a4c7eb546104991 (patch) | |
tree | 238d79549e511ff13dfddc389128a4e11c3c7d1d /sql/records.cc | |
parent | a6ca5cbb9172ba7fb56834d78d6527525a59d1c3 (diff) | |
download | mariadb-git-e0d8d62e3934e85f2fc55e707a4c7eb546104991.tar.gz |
Added interface for first set of dynamic variables.
Diffstat (limited to 'sql/records.cc')
-rw-r--r-- | sql/records.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/records.cc b/sql/records.cc index 29ace3cd652..14049449114 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -61,7 +61,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table, table->file->rnd_init(0); if (! (specialflag & SPECIAL_SAFE_MODE) && - record_rnd_cache_size && + thd->variables.record_rnd_cache_size && !table->file->fast_key_read() && (table->db_stat & HA_READ_ONLY || table->reginfo.lock_type <= TL_READ_NO_INSERT) && @@ -229,6 +229,8 @@ tryNext: static int init_rr_cache(READ_RECORD *info) { uint rec_cache_size; + THD *thd= current_thd; + DBUG_ENTER("init_rr_cache"); info->struct_length=3+MAX_REFLENGTH; @@ -237,7 +239,7 @@ static int init_rr_cache(READ_RECORD *info) info->reclength=ALIGN_SIZE(info->struct_length); info->error_offset=info->table->reclength; - info->cache_records=record_rnd_cache_size/ + info->cache_records= thd->variables.record_rnd_cache_size / (info->reclength+info->struct_length); rec_cache_size=info->cache_records*info->reclength; info->rec_cache_size=info->cache_records*info->ref_length; |