Skip to content

Commit ea8d63f

Browse files
author
Mikael Ronström
committed
Fixed such that debug_sync can be used by plugins on Windows
1 parent a6686d0 commit ea8d63f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sql/debug_sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class THD;
3939
} while (0)
4040

4141
/* Command line option --debug-sync-timeout. See mysqld.cc. */
42-
extern uint opt_debug_sync_timeout;
42+
extern MYSQL_PLUGIN_IMPORT uint opt_debug_sync_timeout;
4343

4444
/* Default WAIT_FOR timeout if command line option is given without argument. */
4545
#define DEBUG_SYNC_DEFAULT_WAIT_TIMEOUT 300

sql/mysqld.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ my_bool opt_super_large_pages= 0;
425425
my_bool opt_myisam_use_mmap= 0;
426426
uint opt_large_page_size= 0;
427427
#if defined(ENABLED_DEBUG_SYNC)
428-
uint opt_debug_sync_timeout= 0;
428+
MYSQL_PLUGIN_IMPORT uint opt_debug_sync_timeout= 0;
429429
#endif /* defined(ENABLED_DEBUG_SYNC) */
430430
my_bool opt_old_style_user_limits= 0, trust_function_creators= 0;
431431
/*

0 commit comments

Comments
 (0)