summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 830e45a139f..7750c8ad7fb 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -2858,10 +2858,9 @@ public:
bool keyread_enabled() { return keyread < MAX_KEY; }
int ha_start_keyread(uint idx)
{
- if (keyread_enabled())
- return 0;
+ int res= keyread_enabled() ? 0 : extra(HA_EXTRA_KEYREAD);
keyread= idx;
- return extra(HA_EXTRA_KEYREAD);
+ return res;
}
int ha_end_keyread()
{