mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
A fix for systems that don't have HAVE_MMAP defined.
Moved some variable externs from sql_class.h to mysql_priv.h
This commit is contained in:

parent
ab96501e4c
commit
f2933263fb
@@ -1083,6 +1083,8 @@ extern ulong rpl_recovery_rank, thread_cache_size;
|
|||||||
extern ulong back_log;
|
extern ulong back_log;
|
||||||
extern ulong specialflag, current_pid;
|
extern ulong specialflag, current_pid;
|
||||||
extern ulong expire_logs_days, sync_binlog_period, sync_binlog_counter;
|
extern ulong expire_logs_days, sync_binlog_period, sync_binlog_counter;
|
||||||
|
extern ulong opt_tc_log_size, tc_log_max_pages_used, tc_log_page_size;
|
||||||
|
extern ulong tc_log_page_waits;
|
||||||
extern my_bool relay_log_purge, opt_innodb_safe_binlog, opt_innodb;
|
extern my_bool relay_log_purge, opt_innodb_safe_binlog, opt_innodb;
|
||||||
extern uint test_flags,select_errors,ha_open_options;
|
extern uint test_flags,select_errors,ha_open_options;
|
||||||
extern uint protocol_version, mysqld_port, dropping_tables;
|
extern uint protocol_version, mysqld_port, dropping_tables;
|
||||||
|
@@ -4671,9 +4671,11 @@ Disable with --skip-innodb-doublewrite.", (gptr*) &innobase_use_doublewrite,
|
|||||||
"more than one storage engine, when binary log is disabled)",
|
"more than one storage engine, when binary log is disabled)",
|
||||||
(gptr*) &opt_tc_log_file, (gptr*) &opt_tc_log_file, 0, GET_STR,
|
(gptr*) &opt_tc_log_file, (gptr*) &opt_tc_log_file, 0, GET_STR,
|
||||||
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
|
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
|
||||||
|
#ifdef HAVE_MMAP
|
||||||
{"log-tc-size", OPT_LOG_TC_SIZE, "Size of transaction coordinator log.",
|
{"log-tc-size", OPT_LOG_TC_SIZE, "Size of transaction coordinator log.",
|
||||||
(gptr*) &opt_tc_log_size, (gptr*) &opt_tc_log_size, 0, GET_ULONG,
|
(gptr*) &opt_tc_log_size, (gptr*) &opt_tc_log_size, 0, GET_ULONG,
|
||||||
REQUIRED_ARG, TC_LOG_MIN_SIZE, TC_LOG_MIN_SIZE, ~0L, 0, TC_LOG_PAGE_SIZE, 0},
|
REQUIRED_ARG, TC_LOG_MIN_SIZE, TC_LOG_MIN_SIZE, ~0L, 0, TC_LOG_PAGE_SIZE, 0},
|
||||||
|
#endif
|
||||||
{"log-update", OPT_UPDATE_LOG,
|
{"log-update", OPT_UPDATE_LOG,
|
||||||
"The update log is deprecated since version 5.0, is replaced by the binary \
|
"The update log is deprecated since version 5.0, is replaced by the binary \
|
||||||
log and this option justs turns on --log-bin instead.",
|
log and this option justs turns on --log-bin instead.",
|
||||||
@@ -5815,9 +5817,11 @@ struct show_var_st status_vars[]= {
|
|||||||
#endif /* HAVE_OPENSSL */
|
#endif /* HAVE_OPENSSL */
|
||||||
{"Table_locks_immediate", (char*) &locks_immediate, SHOW_LONG},
|
{"Table_locks_immediate", (char*) &locks_immediate, SHOW_LONG},
|
||||||
{"Table_locks_waited", (char*) &locks_waited, SHOW_LONG},
|
{"Table_locks_waited", (char*) &locks_waited, SHOW_LONG},
|
||||||
|
#ifdef HAVE_MMAP
|
||||||
{"Tc_log_max_pages_used", (char*) &tc_log_max_pages_used, SHOW_LONG},
|
{"Tc_log_max_pages_used", (char*) &tc_log_max_pages_used, SHOW_LONG},
|
||||||
{"Tc_log_page_size", (char*) &tc_log_page_size, SHOW_LONG},
|
{"Tc_log_page_size", (char*) &tc_log_page_size, SHOW_LONG},
|
||||||
{"Tc_log_page_waits", (char*) &tc_log_page_waits, SHOW_LONG},
|
{"Tc_log_page_waits", (char*) &tc_log_page_waits, SHOW_LONG},
|
||||||
|
#endif
|
||||||
{"Threads_cached", (char*) &cached_thread_count, SHOW_LONG_CONST},
|
{"Threads_cached", (char*) &cached_thread_count, SHOW_LONG_CONST},
|
||||||
{"Threads_connected", (char*) &thread_count, SHOW_INT_CONST},
|
{"Threads_connected", (char*) &thread_count, SHOW_INT_CONST},
|
||||||
{"Threads_created", (char*) &thread_created, SHOW_LONG_CONST},
|
{"Threads_created", (char*) &thread_created, SHOW_LONG_CONST},
|
||||||
|
@@ -45,10 +45,6 @@ extern const char **errmesg;
|
|||||||
|
|
||||||
#define TC_LOG_PAGE_SIZE 8192
|
#define TC_LOG_PAGE_SIZE 8192
|
||||||
#define TC_LOG_MIN_SIZE (3*TC_LOG_PAGE_SIZE)
|
#define TC_LOG_MIN_SIZE (3*TC_LOG_PAGE_SIZE)
|
||||||
extern ulong opt_tc_log_size;
|
|
||||||
extern ulong tc_log_max_pages_used;
|
|
||||||
extern ulong tc_log_page_size;
|
|
||||||
extern ulong tc_log_page_waits;
|
|
||||||
|
|
||||||
#define TC_HEURISTIC_RECOVER_COMMIT 1
|
#define TC_HEURISTIC_RECOVER_COMMIT 1
|
||||||
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
|
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
|
||||||
|
Reference in New Issue
Block a user