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
91239f81
Commit
91239f81
authored
Feb 25, 2011
by
Vasil Dimov
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1-innodb -> mysql-5.5-innodb
parents
56845ed3
5a805fe7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
storage/innobase/buf/buf0buf.c
storage/innobase/buf/buf0buf.c
+6
-3
No files found.
storage/innobase/buf/buf0buf.c
View file @
91239f81
...
...
@@ -2533,16 +2533,19 @@ buf_block_align_instance(
/* TODO: protect buf_pool->chunks with a mutex (it will
currently remain constant after buf_pool_init()) */
for
(
chunk
=
buf_pool
->
chunks
,
i
=
buf_pool
->
n_chunks
;
i
--
;
chunk
++
)
{
lint
offs
=
ptr
-
chunk
->
blocks
->
frame
;
ulint
offs
;
if
(
UNIV_UNLIKELY
(
offs
<
0
))
{
if
(
UNIV_UNLIKELY
(
ptr
<
chunk
->
blocks
->
frame
))
{
continue
;
}
/* else */
offs
=
ptr
-
chunk
->
blocks
->
frame
;
offs
>>=
UNIV_PAGE_SIZE_SHIFT
;
if
(
UNIV_LIKELY
(
(
ulint
)
offs
<
chunk
->
size
))
{
if
(
UNIV_LIKELY
(
offs
<
chunk
->
size
))
{
buf_block_t
*
block
=
&
chunk
->
blocks
[
offs
];
/* The function buf_chunk_init() invokes
...
...
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