diff options
author | Inaam Rana <inaam.rana@oracle.com> | 2013-03-05 10:47:49 -0500 |
---|---|---|
committer | Inaam Rana <inaam.rana@oracle.com> | 2013-03-05 10:47:49 -0500 |
commit | e283b56a4620c3d569b6503c628b07134b9c8ede (patch) | |
tree | 41d3bfbf860a40a7aa0ac87c3dd731cdec8cbf2a | |
parent | c080dc826cc3291f383dc556ddebbd782d97487f (diff) | |
download | mariadb-git-e283b56a4620c3d569b6503c628b07134b9c8ede.tar.gz |
Bug#16068056 INNODB CALLS BUF_VALIDATE() TOO OFTEN WITH UNIV_DEBUG
Approved by: Marko Makela (patch in bug report)
Reduce the number of debug buf_validate() calls
-rw-r--r-- | storage/innobase/buf/buf0buf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c index 31be914afa0..571caf71254 100644 --- a/storage/innobase/buf/buf0buf.c +++ b/storage/innobase/buf/buf0buf.c @@ -1834,7 +1834,7 @@ lookup: buf_read_page(space, zip_size, offset); #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG - ut_a(++buf_dbg_counter % 37 || buf_validate()); + ut_a(++buf_dbg_counter % 5771 || buf_validate()); #endif /* UNIV_DEBUG || UNIV_BUF_DEBUG */ } @@ -2347,7 +2347,7 @@ loop2: } #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG - ut_a(++buf_dbg_counter % 37 || buf_validate()); + ut_a(++buf_dbg_counter % 5771 || buf_validate()); #endif /* UNIV_DEBUG || UNIV_BUF_DEBUG */ goto loop; } @@ -3432,7 +3432,7 @@ buf_page_create( memset(frame + FIL_PAGE_FILE_FLUSH_LSN, 0, 8); #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG - ut_a(++buf_dbg_counter % 357 || buf_validate()); + ut_a(++buf_dbg_counter % 5771 || buf_validate()); #endif /* UNIV_DEBUG || UNIV_BUF_DEBUG */ #ifdef UNIV_IBUF_COUNT_DEBUG ut_a(ibuf_count_get(buf_block_get_space(block), |