From 6ae4094aed50ef1a053d35713c34c9afc3d3c520 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Aug 2004 05:12:56 +0400 Subject: [PATCH] Fixed another bug#4984-type problem. This probably isn't the last fix for this bug. sql/opt_range.cc: Fix for bug#4984 --- sql/opt_range.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index df79824ed1e..d2190c35bc6 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -1140,6 +1140,8 @@ QUICK_ROR_UNION_SELECT::~QUICK_ROR_UNION_SELECT() DBUG_ENTER("QUICK_ROR_UNION_SELECT::~QUICK_ROR_UNION_SELECT"); delete_queue(&queue); quick_selects.delete_elements(); + if (head->file->inited != handler::NONE) + head->file->ha_rnd_end(); free_root(&alloc,MYF(0)); DBUG_VOID_RETURN; }