From 3d4beee1a98cebd6eb566e38569e19599c2b9a98 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 28 Jun 2018 11:59:25 +0200 Subject: [PATCH] remove double-counting rnd_pos_by_record calls ha_rnd_pos, which does the counting --- sql/sql_class.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sql/sql_class.h b/sql/sql_class.h index ec94f6c45d2..9428f6f6ce5 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -5012,8 +5012,6 @@ inline int handler::ha_ft_read(uchar *buf) inline int handler::ha_rnd_pos_by_record(uchar *buf) { int error= rnd_pos_by_record(buf); - if (!error) - update_rows_read(); table->status=error ? STATUS_NOT_FOUND: 0; return error; }