Skip to content

Commit

Permalink
Fixed compilation error in DCMAKE_BUILD_TYPE=mysql_release mode when …
Browse files Browse the repository at this point in the history
…WSREP enabled
  • Loading branch information
sysprg committed Jun 10, 2020
1 parent 648b547 commit 3ccd676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/debug_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ extern uchar *debug_sync_value_ptr(THD *thd);
static inline void debug_sync_init_thread(THD *thd) {}
static inline void debug_sync_end_thread(THD *thd) {}
static inline void debug_sync_reset_thread(THD *thd) {}
static bool debug_sync_set_action(THD *thd, const char *action_str, size_t len) {return false;}
#endif /* defined(ENABLED_DEBUG_SYNC) */

#endif /* DEBUG_SYNC_INCLUDED */
3 changes: 3 additions & 0 deletions sql/wsrep_high_priority_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ int Wsrep_applier_service::apply_write_set(const wsrep::ws_meta& ws_meta,
DBUG_ASSERT(thd->wsrep_trx().state() == wsrep::transaction::s_executing);

thd_proc_info(thd, "applying write set");

#ifdef ENABLED_DEBUG_SYNC
/* moved dbug sync point here, after possible THD switch for SR transactions
has ben done
*/
Expand All @@ -520,6 +522,7 @@ int Wsrep_applier_service::apply_write_set(const wsrep::ws_meta& ws_meta,
DBUG_ASSERT(!debug_sync_set_action(thd,
STRING_WITH_LEN(act)));
};);
#endif

wsrep_setup_uk_and_fk_checks(thd);
int ret= apply_events(thd, m_rli, data, err);
Expand Down

0 comments on commit 3ccd676

Please sign in to comment.