summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.h6
-rw-r--r--sql/sql_class.h7
2 files changed, 2 insertions, 11 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 60c6195e68e..29171d391a6 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -3917,15 +3917,9 @@ protected:
virtual int close(void)=0;
inline void update_rows_read()
{
- if (likely(!internal_tmp_table))
- rows_read++;
- else
- rows_tmp_read++;
}
inline void update_index_statistics()
{
- index_rows_read[active_index]++;
- update_rows_read();
}
public:
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 806f77c1ba2..e51287755e3 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -7362,15 +7362,12 @@ inline Item *and_conds(THD *thd, Item *a, Item *b)
}
/* inline handler methods that need to know TABLE and THD structures */
-inline void handler::increment_statistics(ulong SSV::*offset) const
+inline void handler::increment_statistics(ulong SSV::*) const
{
- status_var_increment(table->in_use->status_var.*offset);
- table->in_use->check_limit_rows_examined();
}
-inline void handler::decrement_statistics(ulong SSV::*offset) const
+inline void handler::decrement_statistics(ulong SSV::*) const
{
- status_var_decrement(table->in_use->status_var.*offset);
}