summaryrefslogtreecommitdiff
path: root/storage/heap
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-11-06 08:24:48 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-11-06 08:48:48 +0200
commitd7a2401750bb29dfdb45929a536539b9f17b347f (patch)
tree2e06b1abc82af53c12a755adc71b3f763d6eba33 /storage/heap
parent7bc26de591c5de185e351e673f12aa69528ea75d (diff)
downloadmariadb-git-d7a2401750bb29dfdb45929a536539b9f17b347f.tar.gz
MDEV-20934 Infinite loop on innodb_fast_shutdown=0 with inconsistent change buffer
Due to a data corruption bug that may have occurred a long time earlier (possibly involving physical backup and MySQL Bug #69122, which was addressed in commit f166ec71b78fdf7a08ba413509cf00ad9e003b3c) it seems possible that the InnoDB change buffer might end up containing entries, while no buffered changes exist according to the change buffer bitmap pages in the .ibd files. ibuf_delete_recs(): New function, to be invoked on slow shutdown only. Remove all buffered changes for a specific page. ibuf_merge_or_delete_for_page(): If the change buffer bitmap is clean and a slow shutdown is in progress, invoke ibuf_delete_recs(). We do not want to do that during normal operation, due to the additional overhead that is involved. The bitmap page should be consistent with the change buffer in the first place.
Diffstat (limited to 'storage/heap')
0 files changed, 0 insertions, 0 deletions