diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2020-08-20 11:38:10 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2020-08-20 11:38:10 +0530 |
commit | a79c25789474f32097e083d3b4953927c04909bc (patch) | |
tree | ecabdaad3a91f3adbcca59cd07358bd8a770633c | |
parent | e9d6f1c7ac0b33f565301ca1f269a36adc35270b (diff) | |
download | mariadb-git-a79c25789474f32097e083d3b4953927c04909bc.tar.gz |
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.
-rw-r--r-- | storage/innobase/buf/buf0buf.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc index a1fd7c48301..5858d9cd2d3 100644 --- a/storage/innobase/buf/buf0buf.cc +++ b/storage/innobase/buf/buf0buf.cc @@ -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); |