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
61e0b38f
Commit
61e0b38f
authored
Dec 16, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore some fixes for slow xtradb shutdown that were lost in the 5.5 merge.
parent
2573f03a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
storage/xtradb/srv/srv0srv.c
storage/xtradb/srv/srv0srv.c
+13
-9
No files found.
storage/xtradb/srv/srv0srv.c
View file @
61e0b38f
...
...
@@ -2929,7 +2929,7 @@ srv_LRU_dump_restore_thread(
last_dump_time
=
time
(
NULL
);
loop:
os_
thread_sleep
(
500000
0
);
os_
event_wait_time_low
(
srv_shutdown_event
,
5000000
,
0
);
if
(
srv_shutdown_state
>=
SRV_SHUTDOWN_CLEANUP
)
{
goto
exit_func
;
...
...
@@ -3240,9 +3240,11 @@ loop:
/* Get sleep interval in micro seconds. We use
ut_min() to avoid long sleep in case of
wrap around. */
os_thread_sleep
(
ut_min
(
1000000
,
(
next_itr_time
-
cur_time
)
*
1000
));
os_event_wait_time_low
(
srv_shutdown_event
,
ut_min
(
1000000
,
(
next_itr_time
-
cur_time
)
*
1000
),
0
);
srv_main_sleeps
++
;
/*
...
...
@@ -3835,6 +3837,7 @@ srv_purge_thread(
ulint
retries
=
0
;
ulint
n_total_purged
=
ULINT_UNDEFINED
;
ulint
next_itr_time
;
ib_int64_t
sig_count
;
ut_a
(
srv_n_purge_threads
==
1
);
...
...
@@ -3909,12 +3912,13 @@ srv_purge_thread(
srv_sync_log_buffer_in_background
();
cur_time
=
ut_time_ms
();
os_event_reset
(
srv_shutdown_event
);
sig_count
=
os_event_reset
(
srv_shutdown_event
);
if
(
next_itr_time
>
cur_time
)
{
os_event_wait_time
(
srv_shutdown_event
,
ut_min
(
1000000
,
(
next_itr_time
-
cur_time
)
*
1000
));
os_event_wait_time_low
(
srv_shutdown_event
,
ut_min
(
1000000
,
(
next_itr_time
-
cur_time
)
*
1000
),
sig_count
);
next_itr_time
=
ut_time_ms
()
+
1000
;
}
else
{
next_itr_time
=
cur_time
+
1000
;
...
...
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