We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365f478 commit e14790bCopy full SHA for e14790b
storage/innobase/include/buf0buf.h
@@ -2351,8 +2351,11 @@ Use these instead of accessing buf_pool->mutex directly. */
2351
2352
2353
/** Get appropriate page_hash_lock. */
2354
-# define buf_page_hash_lock_get(buf_pool, page_id) \
2355
- 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)
2356
+{
2357
+ return hash_get_lock(buf_pool->page_hash, page_id.fold());
2358
+}
2359
2360
/** If not appropriate page_hash_lock, relock until appropriate. */
2361
# define buf_page_hash_lock_s_confirm(hash_lock, buf_pool, page_id)\
0 commit comments