fil0fil.c:
Check if node == NULL, which means we are outside tablespace bounds, and print a big fatal error message
This commit is contained in:
parent
e40a88ea62
commit
41e45ab16a
@ -3800,13 +3800,6 @@ fil_io(
|
|||||||
node = UT_LIST_GET_FIRST(space->chain);
|
node = UT_LIST_GET_FIRST(space->chain);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (space->id != 0 && node->size == 0) {
|
|
||||||
/* We do not know the size of a single-table tablespace
|
|
||||||
before we open the file */
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node == NULL) {
|
if (node == NULL) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"InnoDB: Error: trying to access page number %lu in space %lu,\n"
|
"InnoDB: Error: trying to access page number %lu in space %lu,\n"
|
||||||
@ -3820,6 +3813,13 @@ fil_io(
|
|||||||
ut_error;
|
ut_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (space->id != 0 && node->size == 0) {
|
||||||
|
/* We do not know the size of a single-table tablespace
|
||||||
|
before we open the file */
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (node->size > block_offset) {
|
if (node->size > block_offset) {
|
||||||
/* Found! */
|
/* Found! */
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user