From 8bf7f675b2997b51d33a2e2b37f5c7275fb1a969 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Sun, 7 Nov 2004 22:40:55 +0100 Subject: [PATCH] hack removed --- sql/sql_select.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 2e1429feb3e..0201ea66b21 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -1846,8 +1846,7 @@ Cursor::fetch(ulong num_rows) switch (error) { /* Fetch limit worked, possibly more rows are there */ case -4: - if (thd->transaction.all.innobase_tid) - ha_release_temporary_latches(thd); + ha_release_temporary_latches(thd); thd->server_status|= SERVER_STATUS_CURSOR_EXISTS; ::send_eof(thd); thd->server_status&= ~SERVER_STATUS_CURSOR_EXISTS; @@ -1860,8 +1859,7 @@ Cursor::fetch(ulong num_rows) error= 0; /* fallthrough */ case 0: /* No more rows */ - if (thd->transaction.all.innobase_tid) - ha_release_temporary_latches(thd); + ha_release_temporary_latches(thd); close(); thd->server_status|= SERVER_STATUS_LAST_ROW_SENT; ::send_eof(thd);