From 8a7ecfb9e011d99c7dc2f79974b488c1ca928d8e Mon Sep 17 00:00:00 2001 From: "heikki@donna.mysql.fi" <> Date: Tue, 29 Jan 2002 14:16:31 +0200 Subject: [PATCH] page0page.ic: Add an assert dyn0dyn.h: Reduce stack consumption --- innobase/include/dyn0dyn.h | 2 +- innobase/include/page0page.ic | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/innobase/include/dyn0dyn.h b/innobase/include/dyn0dyn.h index 07ad8539b38..0952a8b4647 100644 --- a/innobase/include/dyn0dyn.h +++ b/innobase/include/dyn0dyn.h @@ -18,7 +18,7 @@ typedef dyn_block_t dyn_array_t; /* Initial 'payload' size in bytes in a dynamic array block */ -#define DYN_ARRAY_DATA_SIZE 1024 +#define DYN_ARRAY_DATA_SIZE 512 /************************************************************************* Initializes a dynamic array. */ diff --git a/innobase/include/page0page.ic b/innobase/include/page0page.ic index 6e33fe2ca5d..f84fe5a5606 100644 --- a/innobase/include/page0page.ic +++ b/innobase/include/page0page.ic @@ -512,6 +512,8 @@ page_dir_find_owner_slot( slot = page_dir_get_nth_slot(page, i); while (page_dir_slot_get_rec(slot) != rec) { + ut_a(i > 0); + i--; slot = page_dir_get_nth_slot(page, i); }