diff --git a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c index c0551f8bd63..c07f8f4bf95 100644 --- a/storage/innobase/os/os0file.c +++ b/storage/innobase/os/os0file.c @@ -4706,6 +4706,11 @@ restart: goto wait_for_io; } + /* if n_consecutive != 0, then we have assigned + something valid to consecutive_ios[0] */ + ut_ad(n_consecutive != 0); + ut_ad(consecutive_ios[0] != NULL); + slot = consecutive_ios[0]; /* Check if there are several consecutive blocks to read or write */