mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: Add a clarifying comment to the insert buffer mutex/lock
order check in sync0sync.c.
This commit is contained in:
parent
33c5bfc756
commit
ccf2f704e1
1 changed files with 3 additions and 0 deletions
|
@ -1089,6 +1089,9 @@ sync_thread_add_level(
|
|||
|| sync_thread_levels_g(array, SYNC_REC_LOCK));
|
||||
break;
|
||||
case SYNC_IBUF_BITMAP:
|
||||
/* Either the thread must own the master mutex to all
|
||||
the bitmap pages, or it is allowed to latch only ONE
|
||||
bitmap page. */
|
||||
ut_a((sync_thread_levels_contain(array, SYNC_IBUF_BITMAP_MUTEX)
|
||||
&& sync_thread_levels_g(array, SYNC_IBUF_BITMAP - 1))
|
||||
|| sync_thread_levels_g(array, SYNC_IBUF_BITMAP));
|
||||
|
|
Loading…
Add table
Reference in a new issue