mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-14508: encryption.innodb-compressed-blob failed in buildbot, assertion in btr0cur.cc line 1398
Before that line there is call to buf_page_get_gen that could return block = NULL when decrypting a page fails. However, we should set error to be != DB_SUCCESS also. In error log there was error about decompression but in that code there is one case where error is not set correctly.
This commit is contained in:
parent
b75d8453d4
commit
564891c532
2 changed files with 4 additions and 0 deletions
|
@ -3453,6 +3453,8 @@ evict_from_pool:
|
|||
buf_block_unfix(fix_block);
|
||||
buf_pool_mutex_exit(buf_pool);
|
||||
rw_lock_x_unlock(&fix_block->lock);
|
||||
|
||||
*err = DB_PAGE_CORRUPTED;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3369,6 +3369,8 @@ evict_from_pool:
|
|||
mutex_enter(&buf_pool->LRU_list_mutex);
|
||||
buf_block_unfix(fix_block);
|
||||
mutex_exit(&buf_pool->LRU_list_mutex);
|
||||
|
||||
*err = DB_PAGE_CORRUPTED;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue