summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2004-08-02 13:02:34 +0300
committermarko@hundin.mysql.fi <>2004-08-02 13:02:34 +0300
commit2f3e628649f350df22c4c06b3dc798b4a1467935 (patch)
tree3dbf14cf36ff5798b797415283f308116de7b303 /innobase
parentf283baade6219b008c19d26d0b6210672e2c626c (diff)
downloadmariadb-git-2f3e628649f350df22c4c06b3dc798b4a1467935.tar.gz
dyn0dyn.h:
dyn_array_open(): mention the size limit mtr0log.ic, mtr0log.h: mlog_open(): mention the size limit
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/dyn0dyn.h3
-rw-r--r--innobase/include/mtr0log.h3
-rw-r--r--innobase/include/mtr0log.ic3
3 files changed, 6 insertions, 3 deletions
diff --git a/innobase/include/dyn0dyn.h b/innobase/include/dyn0dyn.h
index 501fde05e90..abee62300e3 100644
--- a/innobase/include/dyn0dyn.h
+++ b/innobase/include/dyn0dyn.h
@@ -47,7 +47,8 @@ dyn_array_open(
/*===========*/
/* out: pointer to the buffer */
dyn_array_t* arr, /* in: dynamic array */
- ulint size); /* in: size in bytes of the buffer */
+ ulint size); /* in: size in bytes of the buffer; MUST be
+ smaller than DYN_ARRAY_DATA_SIZE! */
/*************************************************************************
Closes the buffer returned by dyn_array_open. */
UNIV_INLINE
diff --git a/innobase/include/mtr0log.h b/innobase/include/mtr0log.h
index 785985dea16..be671e119e3 100644
--- a/innobase/include/mtr0log.h
+++ b/innobase/include/mtr0log.h
@@ -98,7 +98,8 @@ mlog_open(
/*======*/
/* out: buffer, NULL if log mode MTR_LOG_NONE */
mtr_t* mtr, /* in: mtr */
- ulint size); /* in: buffer size in bytes */
+ ulint size); /* in: buffer size in bytes; MUST be
+ smaller than DYN_ARRAY_DATA_SIZE! */
/************************************************************
Closes a buffer opened to mlog. */
UNIV_INLINE
diff --git a/innobase/include/mtr0log.ic b/innobase/include/mtr0log.ic
index b0392e214f1..e544a38330f 100644
--- a/innobase/include/mtr0log.ic
+++ b/innobase/include/mtr0log.ic
@@ -18,7 +18,8 @@ mlog_open(
/*======*/
/* out: buffer, NULL if log mode MTR_LOG_NONE */
mtr_t* mtr, /* in: mtr */
- ulint size) /* in: buffer size in bytes */
+ ulint size) /* in: buffer size in bytes; MUST be
+ smaller than DYN_ARRAY_DATA_SIZE! */
{
dyn_array_t* mlog;