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
8c0f6762
Commit
8c0f6762
authored
Jan 10, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: buf_page_init(): Improve diagnostic output in case of
buf_pool->page_hash corruption.
parent
020b6035
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
buf/buf0buf.c
buf/buf0buf.c
+7
-3
No files found.
buf/buf0buf.c
View file @
8c0f6762
...
...
@@ -1924,6 +1924,7 @@ buf_page_init(
in units of a page */
buf_block_t
*
block
)
/* in: block to init */
{
buf_page_t
*
hash_page
;
#ifdef UNIV_SYNC_DEBUG
ut_ad
(
mutex_own
(
&
(
buf_pool
->
mutex
)));
ut_ad
(
mutex_own
(
&
(
block
->
mutex
)));
...
...
@@ -1940,12 +1941,15 @@ buf_page_init(
/* Insert into the hash table of file pages */
if
(
UNIV_LIKELY_NULL
(
buf_page_hash_get
(
space
,
offset
)))
{
hash_page
=
buf_page_hash_get
(
space
,
offset
);
if
(
UNIV_LIKELY_NULL
(
hash_page
))
{
fprintf
(
stderr
,
"InnoDB: Error: page %lu %lu already found"
" in the hash table
\n
"
,
" in the hash table
: %p, %p
\n
"
,
(
ulong
)
space
,
(
ulong
)
offset
);
(
ulong
)
offset
,
hash_page
,
block
);
#if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
mutex_exit
(
&
block
->
mutex
);
mutex_exit
(
&
buf_pool
->
mutex
);
...
...
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