Commit ef681d42 authored by Vasil Dimov's avatar Vasil Dimov

Add two debug assertions and a comment to make it clear that

consecutive_ios[0] cannot be NULL when slot is assigned.
parent 8dff6a64
...@@ -4706,6 +4706,11 @@ restart: ...@@ -4706,6 +4706,11 @@ restart:
goto wait_for_io; 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]; slot = consecutive_ios[0];
/* Check if there are several consecutive blocks to read or write */ /* Check if there are several consecutive blocks to read or write */
......
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