summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/opt_subselect.h')
-rw-r--r--sql/opt_subselect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_subselect.h b/sql/opt_subselect.h
index abd37f1e98e..45ea3eea6c2 100644
--- a/sql/opt_subselect.h
+++ b/sql/opt_subselect.h
@@ -233,8 +233,8 @@ public:
double records= rows2double(s->table->file->stats.records);
/* The cost is entire index scan cost (divided by 2) */
- double read_time= s->table->file->keyread_time(key, 1,
- (ha_rows) records);
+ double read_time= s->table->file->ha_keyread_and_copy_time(key, 1,
+ (ha_rows) records);
/*
Now find out how many different keys we will get (for now we