diff options
author | unknown <marko@hundin.mysql.fi> | 2005-03-10 15:16:16 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-03-10 15:16:16 +0200 |
commit | 066e8900d63e85500b7f6a48b2cada93924aa600 (patch) | |
tree | ea08f06b68af52a8bab01638d9c412e1b2d239b5 /innobase/page | |
parent | db32810d02ca5cae3a5619d5008923a197425e84 (diff) | |
download | mariadb-git-066e8900d63e85500b7f6a48b2cada93924aa600.tar.gz |
InnoDB: Introduce the symbols REC_OFFS_NORMAL_SIZE and
REC_OFFS_SMALL_SIZE for the initial allocation sizes of
arrays passed to rec_get_offsets().
innobase/btr/btr0btr.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/btr/btr0cur.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/btr/btr0sea.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/include/rem0rec.h:
Define REC_OFFS_NORMAL_SIZE and REC_OFFS_SMALL_SIZE.
innobase/lock/lock0lock.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/page/page0cur.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/page/page0page.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/rem/rem0rec.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/row/row0ins.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/row/row0mysql.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/row/row0purge.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/row/row0row.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/row/row0sel.c:
s/100/REC_OFFS_NORMAL_SIZE/
s/10/REC_OFFS_SMALL_SIZE/
innobase/row/row0undo.c:
s/100/REC_OFFS_NORMAL_SIZE/
innobase/row/row0upd.c:
s/100/REC_OFFS_NORMAL_SIZE/
s/10/REC_OFFS_SMALL_SIZE/
innobase/trx/trx0rec.c:
s/100/REC_OFFS_NORMAL_SIZE/
Diffstat (limited to 'innobase/page')
-rw-r--r-- | innobase/page/page0cur.c | 14 | ||||
-rw-r--r-- | innobase/page/page0page.c | 12 |
2 files changed, 13 insertions, 13 deletions
diff --git a/innobase/page/page0cur.c b/innobase/page/page0cur.c index 1b0df59d57f..7738f5a34f0 100644 --- a/innobase/page/page0cur.c +++ b/innobase/page/page0cur.c @@ -59,7 +59,7 @@ page_cur_try_search_shortcut( #endif ibool success = FALSE; mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -231,7 +231,7 @@ page_cur_search_with_match( ulint dbg_matched_bytes; #endif mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -520,8 +520,8 @@ page_cur_insert_rec_write_log( { mem_heap_t* heap = NULL; - ulint cur_offs_[100]; - ulint ins_offs_[100]; + ulint cur_offs_[REC_OFFS_NORMAL_SIZE]; + ulint ins_offs_[REC_OFFS_NORMAL_SIZE]; ulint* cur_offs; ulint* ins_offs; @@ -677,7 +677,7 @@ page_cur_parse_insert_rec( ulint info_and_status_bits = 0; /* remove warning */ page_cur_t cursor; mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -1086,7 +1086,7 @@ page_copy_rec_list_end_to_created_page( ulint log_data_len; ibool comp = page_is_comp(page); mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -1276,7 +1276,7 @@ page_cur_parse_delete_rec( if (page) { mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; rec_t* rec = page + offset; *offsets_ = (sizeof offsets_) / sizeof *offsets_; diff --git a/innobase/page/page0page.c b/innobase/page/page0page.c index eb8a11f113b..f3217e91f58 100644 --- a/innobase/page/page0page.c +++ b/innobase/page/page0page.c @@ -232,7 +232,7 @@ page_mem_alloc( if (rec) { mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -467,7 +467,7 @@ page_copy_rec_list_end_no_locks( page_cur_t cur2; rec_t* sup; mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -568,7 +568,7 @@ page_copy_rec_list_start( page_cur_t cur2; rec_t* old_end; mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; @@ -750,7 +750,7 @@ page_delete_rec_list_end( if ((size == ULINT_UNDEFINED) || (n_recs == ULINT_UNDEFINED)) { mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; /* Calculate the sum of sizes and the number of records */ @@ -835,7 +835,7 @@ page_delete_rec_list_start( { page_cur_t cur1; ulint log_mode; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; mem_heap_t* heap = NULL; byte type; @@ -1331,7 +1331,7 @@ page_print_list( ulint count; ulint n_recs; mem_heap_t* heap = NULL; - ulint offsets_[100]; + ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; *offsets_ = (sizeof offsets_) / sizeof *offsets_; |