Commit 1b8bb441 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-26351 segfault - (MARIA_HA *) 0x0 in ha_maria::extra

use the correct check. before invoking handler methods we
need to know that the table was opened, not only created.
parent 0168d1ed
This diff is collapsed.
This diff is collapsed.
......@@ -325,7 +325,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 != rr_quick) // otherwise quick_range does it
(void) info->table->file->ha_index_or_rnd_end();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment