mariadb/storage/innobase
Marko Mäkelä bc3660925d MDEV-34307 On startup, [FATAL] InnoDB: Page ... still fixed or dirty
buf_pool_invalidate(): Properly wait for
os_aio_wait_until_no_pending_writes() to ensure so that there
are no pending buf_page_t::write_complete() or buf_page_write_complete()
operations. This will avoid a failure of buf_pool.assert_all_freed().

This bug should affect debug builds only. At this point, the
buf_pool.flush_list should be clear and all changes should have
been written out. The loop around buf_LRU_scan_and_free_block() should
have eventually completed and freed all pages as soon as
buf_page_t::write_complete() had a chance to release the page latches.

It is worth noting that buf_flush_wait() is working as intended.
As soon as buf_flush_page_cleaner() invokes
buf_pool.get_oldest_modification() it will observe that
buf_page_t::write_complete() had assigned oldest_modification_ to 1,
and remove such blocks from buf_pool.flush_list. Upon reaching
buf_pool.flush_list.count=0 the buf_flush_page_cleaner() will mark
itself idle and wake buf_flush_wait() by broadcasting
buf_pool.done_flush_list.

This regression was introduced in
commit a55b951e60 (MDEV-26827).

Reviewed by: Debarun Banerjee
2024-06-06 10:18:42 +03:00
..
btr Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
buf MDEV-34307 On startup, [FATAL] InnoDB: Page ... still fixed or dirty 2024-06-06 10:18:42 +03:00
data Merge 10.4 into 10.5 2022-10-25 11:26:37 +03:00
dict Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
eval MDEV-27336 Crash on DROP DATABASE due to out-of-bounds result from InnoDB SUBSTR() 2021-12-21 17:33:26 +02:00
fil Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
fsp MDEV-34118 fsp_alloc_free_extent() fails to flag DB_OUT_OF_FILE_SPACE 2024-05-10 12:49:16 +03:00
fts Fix heap-use-after-free in fts_free() 2024-03-21 16:01:29 +02:00
fut MDEV-33325 Crash in flst_read_addr on corrupted data 2024-04-11 09:58:53 +03:00
gis Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
ha
handler MDEV-34223 Innodb - add status variable for number of bulk inserts 2024-06-03 16:27:22 +05:30
ibuf Merge 10.5 into 10.6 2024-04-19 16:01:26 +03:00
include MDEV-34223 Innodb - add status variable for number of bulk inserts 2024-06-03 16:27:22 +05:30
lock Merge 10.5 into 10.6 2024-05-30 14:27:07 +03:00
log MDEV-32791 MariaDB cannot be installed on Red Hat ubi9 2024-04-19 11:04:51 +03:00
mem MDEV-27058: Reduce the size of buf_block_t and buf_page_t 2021-11-18 17:47:19 +02:00
mtr Merge 10.5 into 10.6 2024-05-30 14:27:07 +03:00
mysql-test/storage_engine
os MDEV-33980 mariadb-backup --backup is missing retry logic for undo tablespaces 2024-05-06 19:50:20 +05:30
page MDEV-27924 fixup: cmake -DWITH_INNODB_EXTRA_DEBUG=ON 2024-04-23 12:57:39 +03:00
pars Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
que Fix g++-14 -Wmaybe-uninitialized 2024-03-19 08:08:18 +02:00
read MDEV-29612 ReadViewBase::snapshot() misses an optimization 2022-10-06 13:14:16 +03:00
rem Merge branch '10.5' into 10.6 2024-03-13 21:02:34 +01:00
row MDEV-34223 Innodb - add status variable for number of bulk inserts 2024-06-03 16:27:22 +05:30
srv Merge 10.5 into 10.6 2024-05-30 14:27:07 +03:00
sync MDEV-33431 Latching order violation reported fil_system.sys_space.latch and ibuf_pessimistic_insert_mutex 2024-04-17 15:16:50 +05:30
trx Merge 10.5 into 10.6 2024-05-30 14:27:07 +03:00
unittest Merge 10.5 into 10.6 2024-02-13 20:42:59 +02:00
ut MDEV-26642/MDEV-26643/MDEV-32898 Implement innodb_snapshot_isolation 2024-03-20 09:48:03 +02:00
.clang-format-old switch off storage/innobase/.clang-format: InnoDB uses a common formatting style for all new code 2021-03-17 11:01:15 +03:00
bzip2.cmake Add feature summary at the end of cmake. 2021-07-21 10:22:56 +03:00
CMakeLists.txt Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
COPYING.Google
COPYING.Percona
lz4.cmake Add feature summary at the end of cmake. 2021-07-21 10:22:56 +03:00
lzma.cmake Add feature summary at the end of cmake. 2021-07-21 10:22:56 +03:00
lzo.cmake Add feature summary at the end of cmake. 2021-07-21 10:22:56 +03:00
snappy.cmake Add feature summary at the end of cmake. 2021-07-21 10:22:56 +03:00