mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
branches/zip: Make the code compile with all debugging enabled
buf_buddy_relocate(): Replace ut_align_down() with ut_align_offset() in assertions. buf0buddy.h: Include buf0buf.h and sync0sync.h.
This commit is contained in:
parent
f9a10f4cef
commit
91aae17842
2 changed files with 6 additions and 2 deletions
|
@ -268,8 +268,8 @@ buf_buddy_relocate(
|
|||
#ifdef UNIV_SYNC_DEBUG
|
||||
ut_a(mutex_own(&buf_pool->mutex));
|
||||
#endif /* UNIV_SYNC_DEBUG */
|
||||
ut_ad(src == ut_align_down(src, size));
|
||||
ut_ad(dst == ut_align_down(dst, size));
|
||||
ut_ad(!ut_align_offset(src, size));
|
||||
ut_ad(!ut_align_offset(dst, size));
|
||||
ut_ad((((ulint) src) ^ ((ulint) dst)) == size);
|
||||
|
||||
/* We assume that all memory from buf_buddy_alloc()
|
||||
|
|
|
@ -11,8 +11,12 @@ Created December 2006 by Marko Makela
|
|||
# define UNIV_INLINE
|
||||
#endif
|
||||
|
||||
#include "buf0buf.h"
|
||||
#include "buf0buddy.h"
|
||||
#include "ut0ut.h"
|
||||
#ifdef UNIV_SYNC_DEBUG
|
||||
# include "sync0sync.h"
|
||||
#endif /* UNIV_SYNC_DEBUG */
|
||||
|
||||
/**************************************************************************
|
||||
Allocate a block. */
|
||||
|
|
Loading…
Reference in a new issue