Commit 7315b062 authored by marko's avatar marko

branches/zip: buf_page_init_for_read(), buf_page_create(): Note in the

function comments that buf_page_init_for_read() does not perform the
state transition to FILE_PAGE.  This should have been done in r1286.
parent 329c469e
...@@ -2323,9 +2323,7 @@ Function which inits a page for read to the buffer buf_pool. If the page is ...@@ -2323,9 +2323,7 @@ Function which inits a page for read to the buffer buf_pool. If the page is
then this function does nothing. then this function does nothing.
Sets the io_fix flag to BUF_IO_READ and sets a non-recursive exclusive lock Sets the io_fix flag to BUF_IO_READ and sets a non-recursive exclusive lock
on the buffer frame. The io-handler must take care that the flag is cleared on the buffer frame. The io-handler must take care that the flag is cleared
and the lock released later. This is one of the functions which perform the and the lock released later. */
state transition NOT_USED => FILE_PAGE to a block (the other is
buf_page_create). */
buf_block_t* buf_block_t*
buf_page_init_for_read( buf_page_init_for_read(
...@@ -2449,7 +2447,7 @@ buf_page_init_for_read( ...@@ -2449,7 +2447,7 @@ buf_page_init_for_read(
Initializes a page to the buffer buf_pool. The page is usually not read Initializes a page to the buffer buf_pool. The page is usually not read
from a file even if it cannot be found in the buffer buf_pool. This is one from a file even if it cannot be found in the buffer buf_pool. This is one
of the functions which perform to a block a state transition NOT_USED => of the functions which perform to a block a state transition NOT_USED =>
FILE_PAGE (others are buf_page_init_for_read and buf_page_get_gen). */ FILE_PAGE (the other is buf_page_get_gen). */
buf_block_t* buf_block_t*
buf_page_create( buf_page_create(
......
...@@ -256,7 +256,7 @@ buf_page_get_gen( ...@@ -256,7 +256,7 @@ buf_page_get_gen(
Initializes a page to the buffer buf_pool. The page is usually not read Initializes a page to the buffer buf_pool. The page is usually not read
from a file even if it cannot be found in the buffer buf_pool. This is one from a file even if it cannot be found in the buffer buf_pool. This is one
of the functions which perform to a block a state transition NOT_USED => of the functions which perform to a block a state transition NOT_USED =>
FILE_PAGE (others are buf_page_init_for_read and buf_page_get_gen). */ FILE_PAGE (the other is buf_page_get_gen). */
buf_block_t* buf_block_t*
buf_page_create( buf_page_create(
...@@ -867,9 +867,7 @@ Function which inits a page for read to the buffer buf_pool. If the page is ...@@ -867,9 +867,7 @@ Function which inits a page for read to the buffer buf_pool. If the page is
then this function does nothing. then this function does nothing.
Sets the io_fix flag to BUF_IO_READ and sets a non-recursive exclusive lock Sets the io_fix flag to BUF_IO_READ and sets a non-recursive exclusive lock
on the buffer frame. The io-handler must take care that the flag is cleared on the buffer frame. The io-handler must take care that the flag is cleared
and the lock released later. This is one of the functions which perform the and the lock released later. */
state transition NOT_USED => FILE_PAGE to a block (the other is
buf_page_create). */
buf_block_t* buf_block_t*
buf_page_init_for_read( buf_page_init_for_read(
......
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