Commit d7deb7fc authored by marko's avatar marko

branches/zip: buf_page_get_gen(): Improve the comments about

wait_until_unfixed.
parent 8bee0c83
......@@ -1750,6 +1750,9 @@ buf_page_get_gen(
if (bpage->buf_fix_count
|| buf_page_get_io_fix(bpage) != BUF_IO_NONE) {
/* This condition often occurs when the buffer
is not buffer-fixed, but I/O-fixed by
buf_page_init_for_read(). */
wait_until_unfixed:
/* The block is buffer-fixed or I/O-fixed.
Try again later. */
......@@ -1791,8 +1794,9 @@ buf_page_get_gen(
|| buf_page_get_io_fix(bpage) != BUF_IO_NONE)) {
/* The block was buffer-fixed or I/O-fixed
while buf_pool->mutex was released. Free the
block that was allocated and try again. */
while buf_pool->mutex was not held by this thread.
Free the block that was allocated and try again.
This should be extremely unlikely. */
buf_LRU_block_free_non_file_page(block);
mutex_exit(&block->mutex);
......
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