mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
page0page.ic:
Add an assert dyn0dyn.h: Reduce stack consumption
This commit is contained in:
parent
0c87ad9f8a
commit
8a7ecfb9e0
2 changed files with 3 additions and 1 deletions
|
@ -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. */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue