mariadb/storage
Marko Mäkelä 0f8e17af92 Part 1 of MDEV-8139 Fix scrubbing tests
Port a bug fix from MySQL 5.7, so that all undo log pages will be freed
during a slow shutdown. We cannot scrub pages that are left allocated.

commit 173e171c6fb55f064eea278c76fbb28e2b1c757b
Author: Thirunarayanan Balathandayuthapani <thirunarayanan.balathandayuth@oracle.com>
Date:   Fri Sep 9 18:01:27 2016 +0530

    Bug #24450908   UNDO LOG EXISTS AFTER SLOW SHUTDOWN

    Problem:
    ========

    1) cached undo segment is not removed from rollback segment history
    (RSEG_HISTORY) during slow shutdown. In other words, If the segment is
    not completely free, we are failing to remove an entry from the history
    list. While starting the server, we traverse all rollback segment slots
    history list and make it as list of undo logs to be purged in purge
    queue.
    In that case, purge queue will never be empty after slow shutdown.

    2) Freeing of undo log segment is linked with removing undo log header
    from history.

    Fix:
    ====
    1) Have separate logic of removing the undo log header from
    history list from rollback segment slots and remove it from
    rollback segment history even though it is not completely free.

    Reviewed-by: Debarun Banerjee <debarun.banerjee@oracle.com>
    Reviewed-by: Marko Mäkelä <marko.makela@oracle.com>
    RB:13672
2017-01-04 18:21:42 +02:00
..
archive Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
blackhole
cassandra Merge branch '10.0' into 10.1 2015-12-21 21:24:22 +01:00
connect Merge branch '10.0-galera' into 10.1 2016-11-02 13:44:07 +01:00
csv Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
example
federated Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
federatedx Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
heap Sage cleanup in heap storage engine 2015-11-10 13:46:56 +02:00
innobase Part 1 of MDEV-8139 Fix scrubbing tests 2017-01-04 18:21:42 +02:00
maria Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
mroonga MDEV-9363 - Mroonga tests with datetime field fail on Solaris in buildbot 2016-07-08 23:38:05 +04:00
myisam Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
myisammrg Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
oqgraph Merge branch '10.0-galera' into 10.1 2016-11-02 13:44:07 +01:00
perfschema Merge branch '10.0' into 10.1 2016-09-28 17:55:28 +02:00
sequence test for group by pushdown with a view 2016-05-05 01:05:05 +02:00
sphinx MDEV-10985, MDEV-10986 - sphinx tests have not been maintained 2016-11-04 13:33:28 +03:00
spider revert part of 69f1a32 2016-06-22 10:23:11 +02:00
test_sql_discovery MDEV-3929 Add system variable explicit_defaults_for_timestamp for compatibility with MySQL 2015-09-22 14:01:54 +04:00
tokudb Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
xtradb Part 1 of MDEV-8139 Fix scrubbing tests 2017-01-04 18:21:42 +02:00