diff options
author | Monty <monty@mariadb.org> | 2020-03-11 22:04:06 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-03-11 22:04:06 +0200 |
commit | cebf43e166650570182276e30670cd4f97acfedb (patch) | |
tree | 74956248cfd9e9299399b5ef2cb45fc28ba0e634 | |
parent | 3c9bc0ce19c260401b4dd4c33273487829b29df5 (diff) | |
download | mariadb-git-cebf43e166650570182276e30670cd4f97acfedb.tar.gz |
Fixed wrong assert (found by clang)
-rw-r--r-- | storage/maria/ma_page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_page.c b/storage/maria/ma_page.c index 41278597b0c..2c628184b28 100644 --- a/storage/maria/ma_page.c +++ b/storage/maria/ma_page.c @@ -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); |