Skip to content

Commit

Permalink
Merge branch 'ps-5.6-4386' into ps-5.7-4386
Browse files Browse the repository at this point in the history
  • Loading branch information
George O. Lorch III committed Aug 14, 2018
2 parents b3bb195 + 81bf70d commit a6bde8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions storage/tokudb/tokudb_background.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ void* job_manager_t::real_thread_func() {
if (res == tokudb::thread::semaphore_t::E_INTERRUPTED || _shutdown) {
break;
} else if (res == tokudb::thread::semaphore_t::E_SIGNALLED) {
#if TOKUDB_DEBUG
#if defined(TOKUDB_DEBUG)
if (TOKUDB_UNLIKELY(
tokudb::sysvars::debug_pause_background_job_manager)) {
_sem.signal();
tokudb::time::sleep_microsec(250000);
continue;
}
#endif // TOKUDB_DEBUG
#endif // defined(TOKUDB_DEBUG)

mutex_t_lock(_mutex);
assert_debug(_background_jobs.size() > 0);
Expand Down
4 changes: 2 additions & 2 deletions storage/tokudb/tokudb_sysvars.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ extern my_bool dir_per_db;
extern char* version;
extern my_bool check_jemalloc;

#if TOKUDB_DEBUG
#if defined(TOKUDB_DEBUG) && TOKUDB_DEBUG
// used to control background job manager
extern my_bool debug_pause_background_job_manager;
#endif // TOKUDB_DEBUG
#endif // defined(TOKUDB_DEBUG) && TOKUDB_DEBUG

// session/thread
my_bool alter_print_error(THD* thd);
Expand Down

0 comments on commit a6bde8a

Please sign in to comment.