Commit 1ed4504b authored by marko's avatar marko

branches/zip: sync_thread_add_level(): Add a comment explaining the

assertion about SYNC_BUF_POOL and SYNC_BUF_BLOCK.
parent d32ffdd1
......@@ -1079,6 +1079,9 @@ sync_thread_add_level(
}
break;
case SYNC_BUF_BLOCK:
/* Either the thread must own the buffer pool mutex
(buf_pool_mutex), or it is allowed to latch only ONE
buffer block (block->mutex or buf_pool_zip_mutex). */
ut_a((sync_thread_levels_contain(array, SYNC_BUF_POOL)
&& sync_thread_levels_g(array, SYNC_BUF_BLOCK - 1))
|| sync_thread_levels_g(array, SYNC_BUF_BLOCK));
......
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