Skip to content

Commit

Permalink
Merge 10.0 into 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Feb 8, 2017
2 parents 981534b + d831e4c commit 9017a05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions storage/innobase/log/log0recv.cc
Expand Up @@ -179,7 +179,7 @@ UNIV_INTERN mysql_pfs_key_t recv_writer_mutex_key;
# endif /* UNIV_PFS_MUTEX */

/** Flag indicating if recv_writer thread is active. */
UNIV_INTERN bool recv_writer_thread_active = false;
static volatile bool recv_writer_thread_active;
UNIV_INTERN os_thread_t recv_writer_thread_handle = 0;
#endif /* !UNIV_HOTBACKUP */

Expand Down Expand Up @@ -349,8 +349,6 @@ DECLARE_THREAD(recv_writer_thread)(
os_thread_pf(os_thread_get_curr_id()));
#endif /* UNIV_DEBUG_THREAD_CREATION */

recv_writer_thread_active = true;

while (srv_shutdown_state == SRV_SHUTDOWN_NONE) {

/* Wait till we get a signal to clean the LRU list.
Expand Down Expand Up @@ -3008,6 +3006,7 @@ recv_init_crash_recovery(void)

/* Spawn the background thread to flush dirty pages
from the buffer pools. */
recv_writer_thread_active = true;
recv_writer_thread_handle = os_thread_create(
recv_writer_thread, 0, 0);
}
Expand Down
5 changes: 2 additions & 3 deletions storage/xtradb/log/log0recv.cc
Expand Up @@ -182,7 +182,7 @@ UNIV_INTERN mysql_pfs_key_t recv_writer_mutex_key;
# endif /* UNIV_PFS_MUTEX */

/** Flag indicating if recv_writer thread is active. */
UNIV_INTERN bool recv_writer_thread_active = false;
static volatile bool recv_writer_thread_active;
UNIV_INTERN os_thread_t recv_writer_thread_handle = 0;
#endif /* !UNIV_HOTBACKUP */

Expand Down Expand Up @@ -348,8 +348,6 @@ DECLARE_THREAD(recv_writer_thread)(
os_thread_pf(os_thread_get_curr_id()));
#endif /* UNIV_DEBUG_THREAD_CREATION */

recv_writer_thread_active = true;

while (srv_shutdown_state == SRV_SHUTDOWN_NONE) {

os_thread_sleep(100000);
Expand Down Expand Up @@ -3100,6 +3098,7 @@ recv_init_crash_recovery(void)

/* Spawn the background thread to flush dirty pages
from the buffer pools. */
recv_writer_thread_active = true;
recv_writer_thread_handle = os_thread_create(
recv_writer_thread, 0, 0);
}
Expand Down

0 comments on commit 9017a05

Please sign in to comment.