90
88
Do not create database if another thread is holding read lock.
92
90
After wait_if_global_read_lock() we have protection against another
94
92
another thread could step in and get the global read lock before we
95
93
reach wait_if_global_read_lock(). If this thread tries the same as we
97
95
Furthermore wait_if_global_read_lock() checks if the current thread
98
96
has the global read lock and refuses the operation with
99
97
ER_CANT_UPDATE_WITH_READLOCK if applicable.