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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3850902a
Commit
3850902a
authored
May 28, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #28525 Node failures in PGMAN at ndbrequire (line 430)
(part 2)
parent
d2590281
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
storage/ndb/src/kernel/blocks/pgman.cpp
storage/ndb/src/kernel/blocks/pgman.cpp
+12
-12
No files found.
storage/ndb/src/kernel/blocks/pgman.cpp
View file @
3850902a
...
...
@@ -948,9 +948,11 @@ Pgman::process_map(Signal* signal)
#ifdef VM_TRACE
debugOut
<<
"PGMAN: >process_map"
<<
endl
;
#endif
int
max_count
=
m_param
.
m_max_io_waits
-
m_stats
.
m_current_io_waits
;
if
(
max_count
>
0
)
int
max_count
=
0
;
if
(
m_param
.
m_max_io_waits
>
m_stats
.
m_current_io_waits
)
{
max_count
=
m_param
.
m_max_io_waits
-
m_stats
.
m_current_io_waits
;
max_count
=
max_count
/
2
+
1
;
}
Page_sublist
&
pl_map
=
*
m_page_sublist
[
Page_entry
::
SL_MAP
];
while
(
!
pl_map
.
isEmpty
()
&&
--
max_count
>=
0
)
...
...
@@ -1102,15 +1104,10 @@ Pgman::process_cleanup(Signal* signal)
}
int
max_loop_count
=
m_param
.
m_max_loop_count
;
int
max_count
=
m_param
.
m_max_io_waits
-
m_stats
.
m_current_io_waits
;
if
(
max_count
>
0
)
{
int
max_count
=
0
;
if
(
m_param
.
m_max_io_waits
>
m_stats
.
m_current_io_waits
)
{
max_count
=
m_param
.
m_max_io_waits
-
m_stats
.
m_current_io_waits
;
max_count
=
max_count
/
2
+
1
;
/*
* Possibly add code here to avoid writing too rapidly. May be
* unnecessary since only cold pages are cleaned.
*/
}
Ptr
<
Page_entry
>
ptr
=
m_cleanup_ptr
;
...
...
@@ -1212,9 +1209,12 @@ bool
Pgman
::
process_lcp
(
Signal
*
signal
)
{
Page_hashlist
&
pl_hash
=
m_page_hashlist
;
int
max_count
=
m_param
.
m_max_io_waits
-
m_stats
.
m_current_io_waits
;
if
(
max_count
>
0
)
int
max_count
=
0
;
if
(
m_param
.
m_max_io_waits
>
m_stats
.
m_current_io_waits
)
{
max_count
=
m_param
.
m_max_io_waits
-
m_stats
.
m_current_io_waits
;
max_count
=
max_count
/
2
+
1
;
}
#ifdef VM_TRACE
debugOut
...
...
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