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
f3a72845
Commit
f3a72845
authored
Jun 18, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
55c6e7b1
405f6a16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
storage/ndb/src/kernel/blocks/pgman.cpp
storage/ndb/src/kernel/blocks/pgman.cpp
+18
-0
No files found.
storage/ndb/src/kernel/blocks/pgman.cpp
View file @
f3a72845
...
...
@@ -1869,6 +1869,11 @@ Pgman::free_data_file(Uint32 file_no, Uint32 fd)
int
Pgman
::
drop_page
(
Ptr
<
Page_entry
>
ptr
)
{
#ifdef VM_TRACE
debugOut
<<
"PGMAN: drop_page"
<<
endl
;
debugOut
<<
"PGMAN: "
<<
ptr
<<
endl
;
#endif
Page_stack
&
pl_stack
=
m_page_stack
;
Page_queue
&
pl_queue
=
m_page_queue
;
...
...
@@ -1881,8 +1886,14 @@ Pgman::drop_page(Ptr<Page_entry> ptr)
if
(
state
&
Page_entry
::
ONSTACK
)
{
jam
();
bool
at_bottom
=
!
pl_stack
.
hasPrev
(
ptr
);
pl_stack
.
remove
(
ptr
);
state
&=
~
Page_entry
::
ONSTACK
;
if
(
at_bottom
&&
(
state
&
Page_entry
::
HOT
))
{
jam
();
lirs_stack_prune
();
}
}
if
(
state
&
Page_entry
::
ONQUEUE
)
...
...
@@ -2296,6 +2307,13 @@ operator<<(NdbOut& out, Ptr<Pgman::Page_entry> ptr)
out
<<
" lsn="
<<
dec
<<
pe
.
m_lsn
;
out
<<
" busy_count="
<<
dec
<<
pe
.
m_busy_count
;
#ifdef VM_TRACE
{
Pgman
::
Page_stack
&
pl_stack
=
pe
.
m_this
->
m_page_stack
;
if
(
!
pl_stack
.
hasNext
(
ptr
))
out
<<
" top"
;
if
(
!
pl_stack
.
hasPrev
(
ptr
))
out
<<
" bottom"
;
}
{
Pgman
::
Local_page_request_list
req_list
(
ptr
.
p
->
m_this
->
m_page_request_pool
,
ptr
.
p
->
m_requests
);
...
...
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