Browse Source

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.
pull/374/head
marko 19 years ago
parent
commit
bedc6a976b
  1. 6
      buf/buf0buf.c
  2. 6
      include/buf0buf.h

6
buf/buf0buf.c

@ -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.
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
and the lock released later. This is one of the functions which perform the
state transition NOT_USED => FILE_PAGE to a block (the other is
buf_page_create). */
and the lock released later. */
buf_block_t*
buf_page_init_for_read(
@ -2449,7 +2447,7 @@ err_exit:
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
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_page_create(

6
include/buf0buf.h

@ -256,7 +256,7 @@ buf_page_get_gen(
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
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_page_create(
@ -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.
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
and the lock released later. This is one of the functions which perform the
state transition NOT_USED => FILE_PAGE to a block (the other is
buf_page_create). */
and the lock released later. */
buf_block_t*
buf_page_init_for_read(

Loading…
Cancel
Save