Commit 1890ec59 authored by marko's avatar marko

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

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