Commit 84cefe24 authored by Jan Lindström's avatar Jan Lindström

MDEV-8396: InnoDB: Assertion failure in file fil0crypt.cc line 2052

Logic error, NULL pointer was referenced.
parent d1307bde
......@@ -2049,7 +2049,7 @@ fil_crypt_complete_rotate_space(
fil_space_crypt_t *crypt_data = fil_space_get_crypt_data(space);
/* Space might already be dropped */
if (crypt_data || !crypt_data->inited) {
if (crypt_data != NULL && crypt_data->inited) {
mutex_enter(&crypt_data->mutex);
/**
......
......@@ -2049,7 +2049,7 @@ fil_crypt_complete_rotate_space(
fil_space_crypt_t *crypt_data = fil_space_get_crypt_data(space);
/* Space might already be dropped */
if (crypt_data || !crypt_data->inited) {
if (crypt_data != NULL && crypt_data->inited) {
mutex_enter(&crypt_data->mutex);
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment