From 1f0afc587dd6c21c1cf71da85cfc0636a5ae92fa Mon Sep 17 00:00:00 2001 From: marko Date: Wed, 5 Nov 2008 08:28:20 +0000 Subject: [PATCH] branches/innodb+: ibuf0ibuf.c: Add a compile-time check for IBUF_REC_INFO_SIZE. ibuf_get_volume_buffered(): Correct the grammar of the function comment. --- ibuf/ibuf0ibuf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ibuf/ibuf0ibuf.c b/ibuf/ibuf0ibuf.c index c94fc2e5867..c61accf11b8 100644 --- a/ibuf/ibuf0ibuf.c +++ b/ibuf/ibuf0ibuf.c @@ -220,6 +220,9 @@ top of this file. */ #define IBUF_REC_INFO_SIZE 4 /* Combined size of info fields at the beginning of the fourth field */ +#if IBUF_REC_INFO_SIZE >= DATA_NEW_ORDER_NULL_TYPE_BUF_SIZE +# error "IBUF_REC_INFO_SIZE >= DATA_NEW_ORDER_NULL_TYPE_BUF_SIZE" +#endif /* Offsets for the fields at the beginning of the fourth field */ #define IBUF_REC_OFFSET_COUNTER 0 @@ -2533,7 +2536,7 @@ ibuf_get_volume_buffered( /* out: upper limit for the volume of buffered inserts for the index page, in bytes; we may also return UNIV_PAGE_SIZE, if the - entries for the index page span on several + entries for the index page span several pages in the insert buffer */ btr_pcur_t* pcur, /* in: pcur positioned at a place in an insert buffer tree where we would insert an