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
a3a4ea93
Commit
a3a4ea93
authored
Jan 31, 2019
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postmerge rollbacks and fixes
parent
560799eb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
18 deletions
+21
-18
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+15
-6
mysql-test/suite/galera/r/galera_defaults.result
mysql-test/suite/galera/r/galera_defaults.result
+1
-0
plugin/wsrep_info/mysql-test/wsrep_info/suite.pm
plugin/wsrep_info/mysql-test/wsrep_info/suite.pm
+2
-0
sql/log_event.cc
sql/log_event.cc
+1
-11
zlib/CMakeLists.txt
zlib/CMakeLists.txt
+2
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
a3a4ea93
...
...
@@ -139,6 +139,8 @@ my $opt_start_exit;
my
$start_only
;
my
$file_wsrep_provider
;
our
@global_suppressions
;
END
{
if
(
defined
$opt_tmpdir_pid
and
$opt_tmpdir_pid
==
$$
)
{
...
...
@@ -193,6 +195,8 @@ my @DEFAULT_SUITES= qw(
sys_vars-
unit-
vcol-
wsrep-
galera-
)
;
my
$opt_suites
;
...
...
@@ -353,6 +357,7 @@ my $opt_max_test_fail= env_or_val(MTR_MAX_TEST_FAIL => 10);
my
$opt_core_on_failure
=
0
;
my
$opt_parallel
=
$ENV
{
MTR_PARALLEL
}
||
1
;
my
$opt_port_group_size
=
$ENV
{
MTR_PORT_GROUP_SIZE
}
||
20
;
# lock file to stop tests
my
$opt_stop_file
=
$ENV
{
MTR_STOP_FILE
};
...
...
@@ -1113,6 +1118,7 @@ sub command_line_setup {
# Specify ports
'
build-thread|mtr-build-thread=i
'
=>
\
$opt_build_thread
,
'
port-base|mtr-port-base=i
'
=>
\
$opt_port_base
,
'
port-group-size=s
'
=>
\
$opt_port_group_size
,
# Test case authoring
'
record
'
=>
\
$opt_record
,
...
...
@@ -1818,16 +1824,16 @@ sub set_build_thread_ports($) {
$ENV
{
MTR_BUILD_THREAD
}
=
$build_thread
;
# Calculate baseport
$baseport
=
$build_thread
*
20
+
10000
;
if
(
$baseport
<
5001
or
$baseport
+
19
>=
32767
)
$baseport
=
$build_thread
*
$opt_port_group_size
+
10000
;
if
(
$baseport
<
5001
or
$baseport
+
$opt_port_group_size
>=
32767
)
{
mtr_error
("
MTR_BUILD_THREAD number results in a port
",
"
outside 5001 - 32767
",
"
(
$baseport
-
$baseport
+
19
)
");
"
(
$baseport
-
$baseport
+
$opt_port_group_size
)
");
}
mtr_report
("
Using MTR_BUILD_THREAD
$build_thread
,
",
"
with reserved ports
$baseport
..
"
.
(
$baseport
+
19
));
"
with reserved ports
$baseport
..
"
.
(
$baseport
+
(
$opt_port_group_size
-
1
)
));
}
...
...
@@ -2988,8 +2994,8 @@ sub kill_leftovers ($) {
sub
check_ports_free
($)
{
my
$bthread
=
shift
;
my
$portbase
=
$bthread
*
10
+
10000
;
for
(
$portbase
..
$portbase
+
9
){
my
$portbase
=
$bthread
*
$opt_port_group_size
+
10000
;
for
(
$portbase
..
$portbase
+
(
$opt_port_group_size
-
1
)
){
if
(
mtr_ping_port
(
$_
)){
mtr_report
("
- 'localhost:
$_
' was not free
");
return
0
;
# One port was not free
...
...
@@ -4401,6 +4407,7 @@ sub extract_warning_lines ($$) {
# Perl code.
my
@antipatterns
=
(
@global_suppressions
,
qr/error .*connecting to master/
,
qr/InnoDB: Error: in ALTER TABLE `test`.`t[12]`/
,
qr/InnoDB: Error: table `test`.`t[12]` .*does not exist in the InnoDB internal/
,
...
...
@@ -6110,6 +6117,8 @@ Options that specify ports
build-thread=# Can be set in environment variable MTR_BUILD_THREAD.
Set MTR_BUILD_THREAD="auto" to automatically aquire
a build thread id that is unique to current host
port-group-size=N Reserve groups of TCP ports of size N for each MTR thread
Options for test case authoring
...
...
mysql-test/suite/galera/r/galera_defaults.result
View file @
a3a4ea93
...
...
@@ -19,6 +19,7 @@ ORDER BY VARIABLE_NAME;
VARIABLE_NAME VARIABLE_VALUE
WSREP_AUTO_INCREMENT_CONTROL ON
WSREP_CAUSAL_READS ON
WSREP_CERTIFICATION_RULES strict
WSREP_CERTIFY_NONPK ON
WSREP_CLUSTER_ADDRESS gcomm://
WSREP_CLUSTER_NAME my_wsrep_cluster
...
...
plugin/wsrep_info/mysql-test/wsrep_info/suite.pm
View file @
a3a4ea93
...
...
@@ -30,10 +30,12 @@ push @::global_suppressions,
qr(WSREP: Failed to send state UUID:.*)
,
qr(WSREP: wsrep_sst_receive_address.*)
,
qr(WSREP: Could not open saved state file for reading: .*)
,
qr(WSREP: Could not open state file for reading: .*)
,
qr(WSREP: last inactive check more than .* skipping check)
,
qr(WSREP: Gap in state sequence. Need state transfer.)
,
qr(WSREP: Failed to prepare for incremental state transfer: .*)
,
qr(WSREP: SYNC message from member .* in non-primary configuration. Ignored.)
,
qr|WSREP: access file\(.*gvwstate.dat\) failed\(No such file or directory\)|
,
);
...
...
sql/log_event.cc
View file @
a3a4ea93
...
...
@@ -7941,11 +7941,6 @@ User_var_log_event(const char* buf, uint event_len,
val_len
=
uint4korr
(
buf
+
UV_VAL_IS_NULL
+
UV_VAL_TYPE_SIZE
+
UV_CHARSET_NUMBER_SIZE
);
if
(
val
+
val_len
>
buf_end
)
{
error
=
true
;
goto
err
;
}
/**
We need to check if this is from an old server
...
...
@@ -7959,11 +7954,6 @@ User_var_log_event(const char* buf, uint event_len,
we keep the flags set to UNDEF_F.
*/
uint
bytes_read
=
((
val
+
val_len
)
-
buf_start
);
if
(
bytes_read
>
event_len
)
{
error
=
true
;
goto
err
;
}
if
((
data_written
-
bytes_read
)
>
0
)
{
flags
=
(
uint
)
*
(
buf
+
UV_VAL_IS_NULL
+
UV_VAL_TYPE_SIZE
+
...
...
zlib/CMakeLists.txt
View file @
a3a4ea93
...
...
@@ -116,6 +116,7 @@ if(NOT MINGW)
win32/zlib1.rc
# If present will override custom build rule below.
)
endif
()
# parse the full version number from zlib.h and include in ZLIB_FULL_VERSION
file
(
READ
${
CMAKE_CURRENT_SOURCE_DIR
}
/zlib.h _zlib_h_contents
)
string
(
REGEX REPLACE
".*#define[
\t
]+ZLIB_VERSION[
\t
]+
\"
([-0-9A-Za-z.]+)
\"
.*"
...
...
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