Commit 2f3e6286 authored by marko@hundin.mysql.fi's avatar marko@hundin.mysql.fi

dyn0dyn.h:

  dyn_array_open(): mention the size limit
mtr0log.ic, mtr0log.h:
  mlog_open(): mention the size limit
parent f283baad
...@@ -47,7 +47,8 @@ dyn_array_open( ...@@ -47,7 +47,8 @@ dyn_array_open(
/*===========*/ /*===========*/
/* out: pointer to the buffer */ /* out: pointer to the buffer */
dyn_array_t* arr, /* in: dynamic array */ 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. */ Closes the buffer returned by dyn_array_open. */
UNIV_INLINE UNIV_INLINE
......
...@@ -98,7 +98,8 @@ mlog_open( ...@@ -98,7 +98,8 @@ mlog_open(
/*======*/ /*======*/
/* out: buffer, NULL if log mode MTR_LOG_NONE */ /* out: buffer, NULL if log mode MTR_LOG_NONE */
mtr_t* mtr, /* in: mtr */ 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. */ Closes a buffer opened to mlog. */
UNIV_INLINE UNIV_INLINE
......
...@@ -18,7 +18,8 @@ mlog_open( ...@@ -18,7 +18,8 @@ mlog_open(
/*======*/ /*======*/
/* out: buffer, NULL if log mode MTR_LOG_NONE */ /* out: buffer, NULL if log mode MTR_LOG_NONE */
mtr_t* mtr, /* in: mtr */ 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; dyn_array_t* mlog;
......
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