summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2019-11-19 18:52:41 +1000
committerSergei Golubchik <serg@mariadb.org>2020-03-31 17:42:34 +0200
commitb9df4d2a35f11c57c3a9e55117318d7fea034918 (patch)
tree92ec6cdb2288c0586a8a0b6c5108a3bd379113ab /sql/ha_partition.cc
parente6af62189e4b2979b5d9b6628d71407f45fea751 (diff)
downloadmariadb-git-b9df4d2a35f11c57c3a9e55117318d7fea034918.tar.gz
Fix real keyread count for partitions
Sergei's commit ac6b3c44308b61eb implemented handler status counters compensation for underlying handlers like ha_partition. `index_read_idx_map` is missing there, but it should have been fixed as well (proof: ha_partition::index_read_idx_map never calls ha_partition::index_read_map). Note: all this compensation logic could be broken for subpartitions! (We can experience double decrement)
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 16000c8afca..be2e665d7e2 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -5837,6 +5837,7 @@ int ha_partition::index_read_idx_map(uchar *buf, uint index,
{
int error= HA_ERR_KEY_NOT_FOUND;
DBUG_ENTER("ha_partition::index_read_idx_map");
+ decrement_statistics(&SSV::ha_read_key_count);
if (find_flag == HA_READ_KEY_EXACT)
{