summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-02-10 21:04:51 +0100
committerSergei Golubchik <serg@mariadb.org>2022-02-10 21:04:51 +0100
commit9aa3564e8a06c3d2027fc514213ecf42b049b06e (patch)
treec3efa8ad242f4fcdaef2bd0d70e8f80b8b315ba9 /sql/records.cc
parent012e724debdb9e95ed8dc79056c113d5efcc25e4 (diff)
parentb4477ae73c836592268f7fb231eeb38a4fa83bb6 (diff)
downloadmariadb-git-9aa3564e8a06c3d2027fc514213ecf42b049b06e.tar.gz
Merge branch '10.4' into 10.5mariadb-10.5.15
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 900eacf5943..740b96a0cfd 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -355,7 +355,7 @@ void end_read_record(READ_RECORD *info)
free_cache(info);
if (info->table)
{
- if (info->table->is_created())
+ if (info->table->db_stat) // if opened
(void) info->table->file->extra(HA_EXTRA_NO_CACHE);
if (info->read_record_func != rr_quick) // otherwise quick_range does it
(void) info->table->file->ha_index_or_rnd_end();