Commit 49ee12d0 authored by Marko Mäkelä's avatar Marko Mäkelä

Bug #11766591 59733: POSSIBLE DEADLOCK WHEN BUFFERED CHANGES ARE TO BE DISCARDED

The fix in revision id marko.makela@oracle.com-20110815091143-h3zbvm0pv8ni3qql
introduced a false UNIV_SYNC_DEBUG alarm. Relax the assertion.
parent f8ee5b48
......@@ -1248,7 +1248,13 @@ sync_thread_add_level(
TRUE));
break;
case SYNC_IBUF_TREE_NODE_NEW:
ut_a(sync_thread_levels_contain(array, SYNC_IBUF_MUTEX));
/* ibuf_add_free_page() allocates new pages for the
change buffer while only holding the tablespace
x-latch. These pre-allocated new pages may only be
taken in use while holding ibuf_mutex, in
btr_page_alloc_for_ibuf(). */
ut_a(sync_thread_levels_contain(array, SYNC_IBUF_MUTEX)
|| sync_thread_levels_contain(array, SYNC_FSP));
break;
case SYNC_IBUF_INDEX_TREE:
if (sync_thread_levels_contain(array, SYNC_FSP)) {
......
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