Commit 8a7ecfb9 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

page0page.ic:

  Add an assert
dyn0dyn.h:
  Reduce stack consumption
parent 0c87ad9f
...@@ -18,7 +18,7 @@ typedef dyn_block_t dyn_array_t; ...@@ -18,7 +18,7 @@ typedef dyn_block_t dyn_array_t;
/* Initial 'payload' size in bytes in a dynamic array block */ /* 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. */ Initializes a dynamic array. */
......
...@@ -512,6 +512,8 @@ page_dir_find_owner_slot( ...@@ -512,6 +512,8 @@ page_dir_find_owner_slot(
slot = page_dir_get_nth_slot(page, i); slot = page_dir_get_nth_slot(page, i);
while (page_dir_slot_get_rec(slot) != rec) { while (page_dir_slot_get_rec(slot) != rec) {
ut_a(i > 0);
i--; i--;
slot = page_dir_get_nth_slot(page, i); slot = page_dir_get_nth_slot(page, i);
} }
......
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