Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a0d33dc6
Commit
a0d33dc6
authored
Jul 20, 2018
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16689: core-file should become a real server variable
Mysql Bug#56124 bug analog fix using Sys_var_bit.
parent
323f269d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
3 deletions
+39
-3
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+1
-1
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
+14
-0
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
...l-test/suite/sys_vars/r/sysvars_server_notembedded.result
+14
-0
sql/mysqld.cc
sql/mysqld.cc
+2
-1
sql/mysqld.h
sql/mysqld.h
+2
-1
sql/sys_vars.cc
sql/sys_vars.cc
+6
-0
No files found.
client/mysqlbinlog.cc
View file @
a0d33dc6
...
...
@@ -71,7 +71,7 @@ ulong bytes_sent = 0L, bytes_received = 0L;
ulong
mysqld_net_retry_count
=
10L
;
ulong
open_files_limit
;
ulong
opt_binlog_rows_event_max_size
;
u
int
test_flags
=
0
;
u
longlong
test_flags
=
0
;
static
uint
opt_protocol
=
0
;
static
FILE
*
result_file
;
static
char
*
result_file_name
=
0
;
...
...
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
View file @
a0d33dc6
...
...
@@ -471,6 +471,20 @@ NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME CORE_FILE
SESSION_VALUE NULL
GLOBAL_VALUE ON
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE NULL
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT write a core-file on crashes
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY YES
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME DATADIR
SESSION_VALUE NULL
GLOBAL_VALUE PATH
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
View file @
a0d33dc6
...
...
@@ -471,6 +471,20 @@ NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME CORE_FILE
SESSION_VALUE NULL
GLOBAL_VALUE ON
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE NULL
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT write a core-file on crashes
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY YES
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME DATADIR
SESSION_VALUE NULL
GLOBAL_VALUE PATH
...
...
sql/mysqld.cc
View file @
a0d33dc6
...
...
@@ -482,7 +482,7 @@ my_bool opt_master_verify_checksum= 0;
my_bool
opt_slave_sql_verify_checksum
=
1
;
const
char
*
binlog_format_names
[]
=
{
"MIXED"
,
"STATEMENT"
,
"ROW"
,
NullS
};
volatile
sig_atomic_t
calling_initgroups
=
0
;
/**< Used in SIGSEGV handler. */
uint
mysqld_port
,
test_flags
,
select_errors
,
dropping_tables
,
ha_open_options
;
uint
mysqld_port
,
select_errors
,
dropping_tables
,
ha_open_options
;
uint
mysqld_extra_port
;
uint
mysqld_port_timeout
;
ulong
delay_key_write_options
;
...
...
@@ -509,6 +509,7 @@ ulonglong max_binlog_cache_size=0;
ulong
slave_max_allowed_packet
=
0
;
ulonglong
binlog_stmt_cache_size
=
0
;
ulonglong
max_binlog_stmt_cache_size
=
0
;
ulonglong
test_flags
;
ulonglong
query_cache_size
=
0
;
ulong
query_cache_limit
=
0
;
ulong
executed_events
=
0
;
...
...
sql/mysqld.h
View file @
a0d33dc6
...
...
@@ -159,7 +159,8 @@ 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_recovery
;
extern
uint
test_flags
,
select_errors
,
ha_open_options
;
extern
uint
select_errors
,
ha_open_options
;
extern
ulonglong
test_flags
;
extern
uint
protocol_version
,
mysqld_port
,
dropping_tables
;
extern
ulong
delay_key_write_options
;
extern
char
*
opt_logname
,
*
opt_slow_logname
,
*
opt_bin_logname
,
...
...
sql/sys_vars.cc
View file @
a0d33dc6
...
...
@@ -440,6 +440,12 @@ bool check_has_super(sys_var *self, THD *thd, set_var *var)
#endif
return
false
;
}
static
Sys_var_bit
Sys_core_file
(
"core_file"
,
"write a core-file on crashes"
,
READ_ONLY
GLOBAL_VAR
(
test_flags
),
NO_CMD_LINE
,
TEST_CORE_ON_SIGNAL
,
DEFAULT
(
FALSE
),
NO_MUTEX_GUARD
,
NOT_IN_BINLOG
,
0
,
0
,
0
);
static
bool
binlog_format_check
(
sys_var
*
self
,
THD
*
thd
,
set_var
*
var
)
{
if
(
check_has_super
(
self
,
thd
,
var
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment