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
9017a05d
Commit
9017a05d
authored
Feb 08, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0 into 10.1
parents
981534b1
d831e4c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+2
-3
storage/xtradb/log/log0recv.cc
storage/xtradb/log/log0recv.cc
+2
-3
No files found.
storage/innobase/log/log0recv.cc
View file @
9017a05d
...
@@ -179,7 +179,7 @@ UNIV_INTERN mysql_pfs_key_t recv_writer_mutex_key;
...
@@ -179,7 +179,7 @@ UNIV_INTERN mysql_pfs_key_t recv_writer_mutex_key;
# endif
/* UNIV_PFS_MUTEX */
# endif
/* UNIV_PFS_MUTEX */
/** Flag indicating if recv_writer thread is active. */
/** Flag indicating if recv_writer thread is active. */
UNIV_INTERN
bool
recv_writer_thread_active
=
fals
e
;
static
volatile
bool
recv_writer_thread_activ
e
;
UNIV_INTERN
os_thread_t
recv_writer_thread_handle
=
0
;
UNIV_INTERN
os_thread_t
recv_writer_thread_handle
=
0
;
#endif
/* !UNIV_HOTBACKUP */
#endif
/* !UNIV_HOTBACKUP */
...
@@ -349,8 +349,6 @@ DECLARE_THREAD(recv_writer_thread)(
...
@@ -349,8 +349,6 @@ DECLARE_THREAD(recv_writer_thread)(
os_thread_pf
(
os_thread_get_curr_id
()));
os_thread_pf
(
os_thread_get_curr_id
()));
#endif
/* UNIV_DEBUG_THREAD_CREATION */
#endif
/* UNIV_DEBUG_THREAD_CREATION */
recv_writer_thread_active
=
true
;
while
(
srv_shutdown_state
==
SRV_SHUTDOWN_NONE
)
{
while
(
srv_shutdown_state
==
SRV_SHUTDOWN_NONE
)
{
/* Wait till we get a signal to clean the LRU list.
/* Wait till we get a signal to clean the LRU list.
...
@@ -3008,6 +3006,7 @@ recv_init_crash_recovery(void)
...
@@ -3008,6 +3006,7 @@ recv_init_crash_recovery(void)
/* Spawn the background thread to flush dirty pages
/* Spawn the background thread to flush dirty pages
from the buffer pools. */
from the buffer pools. */
recv_writer_thread_active
=
true
;
recv_writer_thread_handle
=
os_thread_create
(
recv_writer_thread_handle
=
os_thread_create
(
recv_writer_thread
,
0
,
0
);
recv_writer_thread
,
0
,
0
);
}
}
...
...
storage/xtradb/log/log0recv.cc
View file @
9017a05d
...
@@ -182,7 +182,7 @@ UNIV_INTERN mysql_pfs_key_t recv_writer_mutex_key;
...
@@ -182,7 +182,7 @@ UNIV_INTERN mysql_pfs_key_t recv_writer_mutex_key;
# endif
/* UNIV_PFS_MUTEX */
# endif
/* UNIV_PFS_MUTEX */
/** Flag indicating if recv_writer thread is active. */
/** Flag indicating if recv_writer thread is active. */
UNIV_INTERN
bool
recv_writer_thread_active
=
fals
e
;
static
volatile
bool
recv_writer_thread_activ
e
;
UNIV_INTERN
os_thread_t
recv_writer_thread_handle
=
0
;
UNIV_INTERN
os_thread_t
recv_writer_thread_handle
=
0
;
#endif
/* !UNIV_HOTBACKUP */
#endif
/* !UNIV_HOTBACKUP */
...
@@ -348,8 +348,6 @@ DECLARE_THREAD(recv_writer_thread)(
...
@@ -348,8 +348,6 @@ DECLARE_THREAD(recv_writer_thread)(
os_thread_pf
(
os_thread_get_curr_id
()));
os_thread_pf
(
os_thread_get_curr_id
()));
#endif
/* UNIV_DEBUG_THREAD_CREATION */
#endif
/* UNIV_DEBUG_THREAD_CREATION */
recv_writer_thread_active
=
true
;
while
(
srv_shutdown_state
==
SRV_SHUTDOWN_NONE
)
{
while
(
srv_shutdown_state
==
SRV_SHUTDOWN_NONE
)
{
os_thread_sleep
(
100000
);
os_thread_sleep
(
100000
);
...
@@ -3100,6 +3098,7 @@ recv_init_crash_recovery(void)
...
@@ -3100,6 +3098,7 @@ recv_init_crash_recovery(void)
/* Spawn the background thread to flush dirty pages
/* Spawn the background thread to flush dirty pages
from the buffer pools. */
from the buffer pools. */
recv_writer_thread_active
=
true
;
recv_writer_thread_handle
=
os_thread_create
(
recv_writer_thread_handle
=
os_thread_create
(
recv_writer_thread
,
0
,
0
);
recv_writer_thread
,
0
,
0
);
}
}
...
...
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