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
841f288a
Commit
841f288a
authored
Sep 22, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: srv_master_thread(): Remove unnecessary assignments to
n_pages_purged.
parent
81a283f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
srv/srv0srv.c
srv/srv0srv.c
+5
-9
No files found.
srv/srv0srv.c
View file @
841f288a
...
...
@@ -2177,7 +2177,7 @@ srv_master_thread(
time_t
last_flush_time
;
time_t
current_time
;
ulint
old_activity_count
;
ulint
n_pages_purged
;
ulint
n_pages_purged
=
0
;
ulint
n_bytes_merged
;
ulint
n_pages_flushed
;
ulint
n_bytes_archived
;
...
...
@@ -2347,11 +2347,9 @@ srv_master_thread(
/* We run a full purge every 10 seconds, even if the server
were active */
n_pages_purged
=
1
;
last_flush_time
=
time
(
NULL
);
while
(
n_pages_purged
)
{
do
{
if
(
srv_fast_shutdown
&&
srv_shutdown_state
>
0
)
{
...
...
@@ -2369,7 +2367,7 @@ srv_master_thread(
log_buffer_flush_to_disk
();
last_flush_time
=
current_time
;
}
}
}
while
(
n_pages_purged
);
srv_main_thread_op_info
=
"flushing buffer pool pages"
;
...
...
@@ -2440,11 +2438,9 @@ srv_master_thread(
/* Run a full purge */
n_pages_purged
=
1
;
last_flush_time
=
time
(
NULL
);
while
(
n_pages_purged
)
{
do
{
if
(
srv_fast_shutdown
&&
srv_shutdown_state
>
0
)
{
break
;
...
...
@@ -2461,7 +2457,7 @@ srv_master_thread(
log_buffer_flush_to_disk
();
last_flush_time
=
current_time
;
}
}
}
while
(
n_pages_purged
);
srv_main_thread_op_info
=
"reserving kernel 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