summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-08-10 17:37:37 +0300
committermonty@hundin.mysql.fi <>2001-08-10 17:37:37 +0300
commite7575da7bba22e74983374a5a5cca71b182bd23c (patch)
tree2d9d1fce1c8c7170391a58f2fa2731f5c6a02605 /sql/records.cc
parent410faef67eab72a77ad3a69b5fa4770c3150fc65 (diff)
downloadmariadb-git-e7575da7bba22e74983374a5a5cca71b182bd23c.tar.gz
Portability fixes
Added record_rnd_buffer Added --safe-user-create Fix for ALTER TABLE RENAME on windows
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc4
1 files changed, 2 insertions, 2 deletions
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;