Commit b10bc48d authored by marko's avatar marko

branches/zip: Add some missing out: comments to buf0buf.h, buf0buf.c.

parent a512de67
...@@ -3612,6 +3612,7 @@ UNIV_INTERN ...@@ -3612,6 +3612,7 @@ UNIV_INTERN
ulint ulint
buf_get_latched_pages_number(void) buf_get_latched_pages_number(void)
/*==============================*/ /*==============================*/
/* out: number of latched pages */
{ {
buf_chunk_t* chunk; buf_chunk_t* chunk;
buf_page_t* b; buf_page_t* b;
...@@ -3700,6 +3701,7 @@ UNIV_INTERN ...@@ -3700,6 +3701,7 @@ UNIV_INTERN
ulint ulint
buf_get_n_pending_ios(void) buf_get_n_pending_ios(void)
/*=======================*/ /*=======================*/
/* out: number of pending I/O operations */
{ {
return(buf_pool->n_pend_reads return(buf_pool->n_pend_reads
+ buf_pool->n_flush[BUF_FLUSH_LRU] + buf_pool->n_flush[BUF_FLUSH_LRU]
...@@ -3714,6 +3716,7 @@ UNIV_INTERN ...@@ -3714,6 +3716,7 @@ UNIV_INTERN
ulint ulint
buf_get_modified_ratio_pct(void) buf_get_modified_ratio_pct(void)
/*============================*/ /*============================*/
/* out: modified page percentage ratio */
{ {
ulint ratio; ulint ratio;
...@@ -3828,11 +3831,12 @@ buf_refresh_io_stats(void) ...@@ -3828,11 +3831,12 @@ buf_refresh_io_stats(void)
} }
/************************************************************************* /*************************************************************************
Checks that all file pages in the buffer are in a replaceable state. */ Asserts that all file pages in the buffer are in a replaceable state. */
UNIV_INTERN UNIV_INTERN
ibool ibool
buf_all_freed(void) buf_all_freed(void)
/*===============*/ /*===============*/
/* out: TRUE */
{ {
buf_chunk_t* chunk; buf_chunk_t* chunk;
ulint i; ulint i;
...@@ -3893,6 +3897,7 @@ UNIV_INTERN ...@@ -3893,6 +3897,7 @@ UNIV_INTERN
ulint ulint
buf_get_free_list_len(void) buf_get_free_list_len(void)
/*=======================*/ /*=======================*/
/* out: length of the free list */
{ {
ulint len; ulint len;
......
...@@ -566,6 +566,7 @@ UNIV_INTERN ...@@ -566,6 +566,7 @@ UNIV_INTERN
ulint ulint
buf_get_latched_pages_number(void); buf_get_latched_pages_number(void);
/*==============================*/ /*==============================*/
/* out: number of latched pages */
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
/************************************************************************* /*************************************************************************
Returns the number of pending buf pool ios. */ Returns the number of pending buf pool ios. */
...@@ -573,6 +574,7 @@ UNIV_INTERN ...@@ -573,6 +574,7 @@ UNIV_INTERN
ulint ulint
buf_get_n_pending_ios(void); buf_get_n_pending_ios(void);
/*=======================*/ /*=======================*/
/* out: number of pending I/O operations */
/************************************************************************* /*************************************************************************
Prints info of the buffer i/o. */ Prints info of the buffer i/o. */
UNIV_INTERN UNIV_INTERN
...@@ -587,6 +589,7 @@ UNIV_INTERN ...@@ -587,6 +589,7 @@ UNIV_INTERN
ulint ulint
buf_get_modified_ratio_pct(void); buf_get_modified_ratio_pct(void);
/*============================*/ /*============================*/
/* out: modified page percentage ratio */
/************************************************************************** /**************************************************************************
Refreshes the statistics used to print per-second averages. */ Refreshes the statistics used to print per-second averages. */
UNIV_INTERN UNIV_INTERN
...@@ -594,11 +597,12 @@ void ...@@ -594,11 +597,12 @@ void
buf_refresh_io_stats(void); buf_refresh_io_stats(void);
/*======================*/ /*======================*/
/************************************************************************* /*************************************************************************
Checks that all file pages in the buffer are in a replaceable state. */ Asserts that all file pages in the buffer are in a replaceable state. */
UNIV_INTERN UNIV_INTERN
ibool ibool
buf_all_freed(void); buf_all_freed(void);
/*===============*/ /*===============*/
/* out: TRUE */
/************************************************************************* /*************************************************************************
Checks that there currently are no pending i/o-operations for the buffer Checks that there currently are no pending i/o-operations for the buffer
pool. */ pool. */
...@@ -1018,6 +1022,7 @@ UNIV_INTERN ...@@ -1018,6 +1022,7 @@ UNIV_INTERN
ulint ulint
buf_get_free_list_len(void); buf_get_free_list_len(void);
/*=======================*/ /*=======================*/
/* out: length of the free list */
#endif /* !UNIV_HOTBACKUP */ #endif /* !UNIV_HOTBACKUP */
......
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