summaryrefslogtreecommitdiff
path: root/innobase/rem
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2005-03-10 15:16:16 +0200
committermarko@hundin.mysql.fi <>2005-03-10 15:16:16 +0200
commitc4ace2a471d53b1d6e3c75edd54354409f5a8757 (patch)
treeea08f06b68af52a8bab01638d9c412e1b2d239b5 /innobase/rem
parent6920a6d5466b0241286051bb327d32bf2fdfa4dc (diff)
downloadmariadb-git-c4ace2a471d53b1d6e3c75edd54354409f5a8757.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().
Diffstat (limited to 'innobase/rem')
-rw-r--r--innobase/rem/rem0rec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/innobase/rem/rem0rec.c b/innobase/rem/rem0rec.c
index 94b2c692897..542c746209b 100644
--- a/innobase/rem/rem0rec.c
+++ b/innobase/rem/rem0rec.c
@@ -958,7 +958,7 @@ rec_convert_dtuple_to_rec(
#ifdef UNIV_DEBUG
{
mem_heap_t* heap = NULL;
- ulint offsets_[100];
+ ulint offsets_[REC_OFFS_NORMAL_SIZE];
const ulint* offsets;
*offsets_ = (sizeof offsets_) / sizeof *offsets_;
@@ -991,7 +991,7 @@ rec_copy_prefix_to_dtuple(
ulint len;
byte* buf = NULL;
ulint i;
- ulint offsets_[100];
+ ulint offsets_[REC_OFFS_NORMAL_SIZE];
ulint* offsets = offsets_;
*offsets_ = (sizeof offsets_) / sizeof *offsets_;
@@ -1407,7 +1407,7 @@ rec_print(
return;
} else {
mem_heap_t* heap = NULL;
- ulint offsets_[100];
+ ulint offsets_[REC_OFFS_NORMAL_SIZE];
*offsets_ = (sizeof offsets_) / sizeof *offsets_;
rec_print_new(file, rec, rec_get_offsets(rec, index, offsets_,