diff options
Diffstat (limited to 'sql/debug_sync.h')
-rw-r--r-- | sql/debug_sync.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/debug_sync.h b/sql/debug_sync.h index 7a63a52959c..3b8aa8815e1 100644 --- a/sql/debug_sync.h +++ b/sql/debug_sync.h @@ -41,10 +41,16 @@ extern int debug_sync_init(void); extern void debug_sync_end(void); extern void debug_sync_init_thread(THD *thd); extern void debug_sync_end_thread(THD *thd); +void debug_sync_reset_thread(THD *thd); extern bool debug_sync_set_action(THD *thd, const char *action_str, size_t len); extern bool debug_sync_update(THD *thd, char *val_str, size_t len); extern uchar *debug_sync_value_ptr(THD *thd); - +#else +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 inline bool debug_sync_set_action(THD *, const char *, size_t) +{ return false; } #endif /* defined(ENABLED_DEBUG_SYNC) */ #endif /* DEBUG_SYNC_INCLUDED */ |