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
0946ceeb
Commit
0946ceeb
authored
Jun 24, 2007
by
pekka@clam.ndb.mysql.com/ndb13.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#29176 pgman: another missing stack pruning related to drop table
parent
0510a696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
storage/ndb/src/kernel/blocks/pgman.cpp
storage/ndb/src/kernel/blocks/pgman.cpp
+10
-1
No files found.
storage/ndb/src/kernel/blocks/pgman.cpp
View file @
0946ceeb
...
...
@@ -695,7 +695,14 @@ Pgman::lirs_reference(Ptr<Page_entry> ptr)
if
(
state
&
Page_entry
::
ONSTACK
)
{
jam
();
bool
at_bottom
=
!
pl_stack
.
hasPrev
(
ptr
);
pl_stack
.
remove
(
ptr
);
if
(
at_bottom
)
{
jam
();
ndbassert
(
state
&
Page_entry
::
HOT
);
lirs_stack_prune
();
}
}
pl_stack
.
add
(
ptr
);
state
|=
Page_entry
::
ONSTACK
;
...
...
@@ -1891,9 +1898,10 @@ Pgman::drop_page(Ptr<Page_entry> ptr)
bool
at_bottom
=
!
pl_stack
.
hasPrev
(
ptr
);
pl_stack
.
remove
(
ptr
);
state
&=
~
Page_entry
::
ONSTACK
;
if
(
at_bottom
&&
(
state
&
Page_entry
::
HOT
)
)
if
(
at_bottom
)
{
jam
();
ndbassert
(
state
&
Page_entry
::
HOT
);
lirs_stack_prune
();
}
}
...
...
@@ -1905,6 +1913,7 @@ Pgman::drop_page(Ptr<Page_entry> ptr)
state
&=
~
Page_entry
::
ONQUEUE
;
}
ndbassert
(
ptr
.
p
->
m_real_page_i
!=
RNIL
);
if
(
ptr
.
p
->
m_real_page_i
!=
RNIL
)
{
jam
();
...
...
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