mariadb/storage/innobase/srv
Aditya A 44b1fb3614 WL9513 Bug#23333990 PERSISTENT INDEX STATISTICS UPDATE BEFORE TRANSACTION IS COMMITTED
PROBLEM

By design stats estimation always reading uncommitted data. In this scenario
an uncommitted transaction has deleted all rows in the table. In Innodb
uncommitted delete records are marked as delete but not actually removed
from Btree until the transaction has committed or a read view for the rows
is present.While calculating persistent stats we were ignoring the delete
marked records,since all the records are delete marked we were estimating
the number of rows present in the table as zero which leads to bad plans
in other transaction operating on the table.

Fix

Introduced a system variable called innodb_stats_include_delete_marked
which when enabled includes delete marked records for stat
calculations .
2017-04-24 17:45:23 +03:00
..
srv0conc.cc MDEV-12121 Introduce build option WITH_INNODB_AHI to disable innodb_adaptive_hash_index 2017-03-03 16:55:50 +02:00
srv0mon.cc MDEV-12534 Use atomic operations whenever available 2017-04-21 17:55:22 +03:00
srv0srv.cc WL9513 Bug#23333990 PERSISTENT INDEX STATISTICS UPDATE BEFORE TRANSACTION IS COMMITTED 2017-04-24 17:45:23 +03:00
srv0start.cc MDEV-12488 Remove type mismatch in InnoDB printf-like calls 2017-04-21 18:03:15 +03:00