Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c0e41e12
Commit
c0e41e12
authored
Feb 09, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port r170 from branches/5.0:
Fix bug #16827, better error message if ibdata files omitted from my.cnf.
parent
549dfbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
17 deletions
+31
-17
fil/fil0fil.c
fil/fil0fil.c
+31
-17
No files found.
fil/fil0fil.c
View file @
c0e41e12
...
...
@@ -3820,6 +3820,31 @@ fil_node_complete_io(
}
}
/************************************************************************
Report information about an invalid page access. */
static
void
fil_report_invalid_page_access
(
/*===========================*/
ulint
block_offset
,
/* in: block offset */
ulint
space_id
,
/* in: space id */
const
char
*
space_name
,
/* in: space name */
ulint
byte_offset
,
/* in: byte offset */
ulint
len
,
/* in: I/O length */
ulint
type
)
/* in: I/O type */
{
fprintf
(
stderr
,
"InnoDB: Error: trying to access page number %lu in space %lu,
\n
"
"InnoDB: space name %s,
\n
"
"InnoDB: which is outside the tablespace bounds.
\n
"
"InnoDB: Byte offset %lu, len %lu, i/o type %lu.
\n
"
"InnoDB: If you get this error at mysqld startup, please check that
\n
"
"InnoDB: your my.cnf matches the ibdata files that you have in the
\n
"
"InnoDB: MySQL server.
\n
"
,
(
ulong
)
block_offset
,
(
ulong
)
space_id
,
space_name
,
(
ulong
)
byte_offset
,
(
ulong
)
len
,
(
ulong
)
type
);
}
/************************************************************************
Reads or writes data. This operation is asynchronous (aio). */
...
...
@@ -3926,14 +3951,8 @@ fil_io(
for
(;;)
{
if
(
node
==
NULL
)
{
fprintf
(
stderr
,
"InnoDB: Error: trying to access page number %lu in space %lu,
\n
"
"InnoDB: space name %s,
\n
"
"InnoDB: which is outside the tablespace bounds.
\n
"
"InnoDB: Byte offset %lu, len %lu, i/o type %lu
\n
"
,
(
ulong
)
block_offset
,
(
ulong
)
space_id
,
space
->
name
,
(
ulong
)
byte_offset
,
(
ulong
)
len
,
(
ulong
)
type
);
fil_report_invalid_page_access
(
block_offset
,
space_id
,
space
->
name
,
byte_offset
,
len
,
type
);
ut_error
;
}
...
...
@@ -3962,15 +3981,10 @@ fil_io(
if
(
space
->
purpose
==
FIL_TABLESPACE
&&
space
->
id
!=
0
&&
node
->
size
<=
block_offset
)
{
fprintf
(
stderr
,
"InnoDB: Error: trying to access page number %lu in space %lu,
\n
"
"InnoDB: space name %s,
\n
"
"InnoDB: which is outside the tablespace bounds.
\n
"
"InnoDB: Byte offset %lu, len %lu, i/o type %lu
\n
"
,
(
ulong
)
block_offset
,
(
ulong
)
space_id
,
space
->
name
,
(
ulong
)
byte_offset
,
(
ulong
)
len
,
(
ulong
)
type
);
ut_a
(
0
);
fil_report_invalid_page_access
(
block_offset
,
space_id
,
space
->
name
,
byte_offset
,
len
,
type
);
ut_error
;
}
/* Now we have made the changes in the data structures of system */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment