Fixed wrong assert (found by clang)
This commit is contained in:
parent
3c9bc0ce19
commit
cebf43e166
@ -112,7 +112,7 @@ my_bool _ma_fetch_keypage(MARIA_PAGE *page, MARIA_HA *info,
|
||||
|
||||
if (lock != PAGECACHE_LOCK_LEFT_UNLOCKED)
|
||||
{
|
||||
DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE || PAGECACHE_LOCK_READ);
|
||||
DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE || lock == PAGECACHE_LOCK_READ);
|
||||
page_link.unlock= (lock == PAGECACHE_LOCK_WRITE ?
|
||||
PAGECACHE_LOCK_WRITE_UNLOCK :
|
||||
PAGECACHE_LOCK_READ_UNLOCK);
|
||||
|
Loading…
x
Reference in New Issue
Block a user