mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Remove an unnecessary comparison.
This commit is contained in:
parent
7e02fd1f71
commit
545c912696
4 changed files with 0 additions and 16 deletions
|
@ -283,11 +283,6 @@ fil_space_read_crypt_data(
|
|||
const byte* page, /*!< in: page 0 */
|
||||
ulint offset) /*!< in: offset */
|
||||
{
|
||||
if (memcmp(page + offset, EMPTY_PATTERN, MAGIC_SZ) == 0) {
|
||||
/* Crypt data is not stored. */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
|
||||
/* Crypt data is not stored. */
|
||||
return NULL;
|
||||
|
|
|
@ -34,9 +34,6 @@ Created 04/01/2015 Jan Lindström
|
|||
static const unsigned char CRYPT_MAGIC[MAGIC_SZ] = {
|
||||
's', 0xE, 0xC, 'R', 'E', 't' };
|
||||
|
||||
static const unsigned char EMPTY_PATTERN[MAGIC_SZ] = {
|
||||
0x0, 0x0, 0x0, 0x0, 0x0, 0x0 };
|
||||
|
||||
/* This key will be used if nothing else is given */
|
||||
#define FIL_DEFAULT_ENCRYPTION_KEY ENCRYPTION_KEY_SYSTEM_DATA
|
||||
|
||||
|
|
|
@ -283,11 +283,6 @@ fil_space_read_crypt_data(
|
|||
const byte* page, /*!< in: page 0 */
|
||||
ulint offset) /*!< in: offset */
|
||||
{
|
||||
if (memcmp(page + offset, EMPTY_PATTERN, MAGIC_SZ) == 0) {
|
||||
/* Crypt data is not stored. */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
|
||||
/* Crypt data is not stored. */
|
||||
return NULL;
|
||||
|
|
|
@ -34,9 +34,6 @@ Created 04/01/2015 Jan Lindström
|
|||
static const unsigned char CRYPT_MAGIC[MAGIC_SZ] = {
|
||||
's', 0xE, 0xC, 'R', 'E', 't' };
|
||||
|
||||
static const unsigned char EMPTY_PATTERN[MAGIC_SZ] = {
|
||||
0x0, 0x0, 0x0, 0x0, 0x0, 0x0 };
|
||||
|
||||
/* This key will be used if nothing else is given */
|
||||
#define FIL_DEFAULT_ENCRYPTION_KEY ENCRYPTION_KEY_SYSTEM_DATA
|
||||
|
||||
|
|
Loading…
Reference in a new issue