mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
fil_crypt_rotate_page - space_id should be compared to TRX_SYS_SPACE not space
Fixes compile error that highlights problem: /source/storage/innobase/fil/fil0crypt.cc: In function 'void fil_crypt_rotate_page(const key_state_t*, rotate_thread_t*)': /source/storage/innobase/fil/fil0crypt.cc:1770:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (space == TRX_SYS_SPACE && offset == TRX_SYS_PAGE_NO) { Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
This commit is contained in:
parent
a00517ac97
commit
9a218f4fb8
1 changed files with 1 additions and 1 deletions
|
@ -1951,7 +1951,7 @@ fil_crypt_rotate_page(
|
|||
return;
|
||||
}
|
||||
|
||||
if (space == TRX_SYS_SPACE && offset == TRX_SYS_PAGE_NO) {
|
||||
if (space_id == TRX_SYS_SPACE && offset == TRX_SYS_PAGE_NO) {
|
||||
/* don't encrypt this as it contains address to dblwr buffer */
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue