Commit e14790b8 authored by Eugene Kosov's avatar Eugene Kosov

let buf_page_hash_lock_get() be function, not macro

parent 365f4782
......@@ -2351,8 +2351,11 @@ Use these instead of accessing buf_pool->mutex directly. */
/** Get appropriate page_hash_lock. */
# define buf_page_hash_lock_get(buf_pool, page_id) \
hash_get_lock((buf_pool)->page_hash, (page_id).fold())
inline rw_lock_t*
buf_page_hash_lock_get(const buf_pool_t* buf_pool, page_id_t page_id)
{
return hash_get_lock(buf_pool->page_hash, page_id.fold());
}
/** If not appropriate page_hash_lock, relock until appropriate. */
# define buf_page_hash_lock_s_confirm(hash_lock, buf_pool, page_id)\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment