From e7575da7bba22e74983374a5a5cca71b182bd23c Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Fri, 10 Aug 2001 17:37:37 +0300 Subject: Portability fixes Added record_rnd_buffer Added --safe-user-create Fix for ALTER TABLE RENAME on windows --- sql/records.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sql/records.cc') diff --git a/sql/records.cc b/sql/records.cc index 3187aa424d7..0f49b3fa45e 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -66,7 +66,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table, table->file->rnd_init(0); if (! (specialflag & SPECIAL_SAFE_MODE) && - my_default_record_cache_size && + record_rnd_cache_size && !table->file->fast_key_read() && (table->db_stat & HA_READ_ONLY || table->reginfo.lock_type <= TL_READ_NO_INSERT) && @@ -216,7 +216,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=my_default_record_cache_size/ + info->cache_records=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; -- cgit v1.2.1