Commit a1b50405 authored by marko's avatar marko

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.
parent 8e3e3d16
......@@ -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. */
......
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