/******************************************************************//**
Returns the control block of a file page, NULL if not found.
@return    block, NULL if not found */
UNIV_INLINE
buf_page_t*
buf_page_hash_get_low(
/*==================*/
    buf_pool_t*    buf_pool,    /*!< buffer pool instance */
    ulint        space,        /*!< in: space id */
    ulint        offset,        /*!< in: offset of the page
                    within space */
    ulint        fold)        /*!< in: buf_page_address_fold(
                    space, offset) */
{
    buf_page_t*    bpage;

    ut_ad(buf_pool);
    ut_ad(buf_pool_mutex_own(buf_pool));
    ut_ad(fold == buf_page_address_fold(space, offset));

    /* Look for the page in the hash table */

    HASH_SEARCH(hash, buf_pool->page_hash, fold, buf_page_t*, bpage,
            ut_ad(bpage->in_page_hash && !bpage->in_zip_hash
              && buf_page_in_file(bpage)),
            bpage->space == space && bpage->offset == offset); //详见    if (bpage) {
        ut_a(buf_page_in_file(bpage));
        ut_ad(bpage->in_page_hash);
        ut_ad(!bpage->in_zip_hash);
#if UNIV_WORD_SIZE == 4
        /* On 32-bit systems, there is no padding in
        buf_page_t.  On other systems, Valgrind could complain
        about uninitialized pad bytes. */
        UNIV_MEM_ASSERT_RW(bpage, sizeof *bpage);
#endif
    }

    return(bpage);
}

最新文章

  1. 使用T4模板合并js文件
  2. Datagrid数据导出到excel文件的三种方法
  3. Ubuntu 12.04+DarwinStreamingSrvr6.0.3 架设流媒体服务器
  4. POJ 1995
  5. Solr特殊字符转义处理
  6. Swift——(一)为Swift内置类型加入属性
  7. PHP: 异常exception
  8. Axure RP初学
  9. [Shiro] tutorial 1 :SecurityManager and Subject
  10. Python学习笔记–Chapter 2
  11. Java注解之Retention、Documented、Target、Inherited介绍
  12. noip第8课资料
  13. Android重写HorizontalScrollView仿ViewPager效果
  14. -webkit-line-clamp超过两行就出现省略号
  15. node搭建本地服务器
  16. HPU 1007: 严格递增连续子段(贪心)
  17. Oracle EBS AR 客户取数SQL
  18. Docker企业级仓库Harbor的安装配置与使用
  19. 利用Docker设置Node.js
  20. 前端开发必备 - Emmet

热门文章

  1. java连接sqlserver2008报错 java.sql.SQLException: 对象名 &#39;表名&#39; 无效.
  2. [转载]如何申请淘宝app_key、app_secret、SessionKey?
  3. java 正则匹配空格字符串 正则表达式截取字符串
  4. 用Ant实现Java项目的自动构建和部署(转)
  5. facebook代码发布
  6. CentOS下安装Redmine 2.5.2
  7. Block、委托、回调函数原理剖析(在Object C语境)——这样讲还不懂,根本不可能!
  8. ***CI分页:为CodeIgniter写的分页类
  9. mysql 多表 update sql语句总结
  10. sql查询数据库中所有表的记录条数,以及占用磁盘空间大小。