MDEV-23452 Assertion `buf_page_get_io_fix(bpage) == BUF_IO_NONE' failed

in buf_page_set_sticky

- Adding os_thread_yield() in buf_page_create() to avoid the continuous
buffer pool mutex acquistions.
This commit is contained in:
Thirunarayanan Balathandayuthapani 2020-08-20 11:38:10 +05:30
parent e9d6f1c7ac
commit a79c257894

View File

@ -5600,6 +5600,8 @@ buf_page_create(
buf_pool_mutex_exit(buf_pool);
rw_lock_x_unlock(hash_lock);
os_thread_yield();
buf_pool_mutex_enter(buf_pool);
rw_lock_x_lock(hash_lock);
mutex_enter(&block->mutex);