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
f2ccfcac
Commit
f2ccfcac
authored
Jan 24, 2020
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.1' into 10.2
parents
ac3e3e12
599a0609
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
12 deletions
+33
-12
extra/mariabackup/CMakeLists.txt
extra/mariabackup/CMakeLists.txt
+1
-1
extra/mariabackup/innobackupex.cc
extra/mariabackup/innobackupex.cc
+5
-4
extra/mariabackup/xtrabackup.cc
extra/mariabackup/xtrabackup.cc
+3
-2
scripts/wsrep_sst_mariabackup.sh
scripts/wsrep_sst_mariabackup.sh
+2
-2
sql/log_event.cc
sql/log_event.cc
+8
-1
sql/log_event.h
sql/log_event.h
+9
-1
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+5
-1
No files found.
extra/mariabackup/CMakeLists.txt
View file @
f2ccfcac
...
...
@@ -93,7 +93,7 @@ ENDIF()
########################################################################
#
x
bstream binary
#
m
bstream binary
########################################################################
MYSQL_ADD_EXECUTABLE
(
mbstream
ds_buffer.cc
...
...
extra/mariabackup/innobackupex.cc
View file @
f2ccfcac
...
...
@@ -586,8 +586,8 @@ static struct my_option ibx_long_options[] =
{
"stream"
,
OPT_STREAM
,
"This option specifies the format in which to "
"do the streamed backup. The option accepts a string argument. The "
"backup will be done to STDOUT in the specified format. Currently, "
"the only supported formats are tar and
xbstream. This option
is "
"passed directly to xtrabackup's --stream option."
,
"the only supported formats are tar and
mbstream/xbstream. Th
is "
"
option is
passed directly to xtrabackup's --stream option."
,
(
uchar
*
)
&
ibx_xtrabackup_stream_str
,
(
uchar
*
)
&
ibx_xtrabackup_stream_str
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -655,7 +655,7 @@ innobackupex [--compress] [--compress-threads=NUMBER-OF-THREADS] [--compress-chu
[--include=REGEXP] [--user=NAME]
\n
\
[--password=WORD] [--port=PORT] [--socket=SOCKET]
\n
\
[--no-timestamp] [--ibbackup=IBBACKUP-BINARY]
\n
\
[--slave-info] [--galera-info] [--stream=tar|xbstream]
\n
\
[--slave-info] [--galera-info] [--stream=tar|
mbstream|
xbstream]
\n
\
[--defaults-file=MY.CNF] [--defaults-group=GROUP-NAME]
\n
\
[--databases=LIST] [--no-lock]
\n
\
[--tmpdir=DIRECTORY] [--tables-file=FILE]
\n
\
...
...
@@ -751,7 +751,8 @@ ibx_get_one_option(int optid,
}
break
;
case
OPT_STREAM
:
if
(
!
strcasecmp
(
argument
,
"xbstream"
))
if
(
!
strcasecmp
(
argument
,
"mbstream"
)
||
!
strcasecmp
(
argument
,
"xbstream"
))
xtrabackup_stream_fmt
=
XB_STREAM_FMT_XBSTREAM
;
else
{
ibx_msg
(
"Invalid --stream argument: %s
\n
"
,
argument
);
...
...
extra/mariabackup/xtrabackup.cc
View file @
f2ccfcac
...
...
@@ -909,7 +909,7 @@ struct my_option xb_client_options[] =
{
"stream"
,
OPT_XTRA_STREAM
,
"Stream all backup files to the standard output "
"in the specified format."
"Supported format is 'xbstream'."
"Supported format is '
mbstream' or '
xbstream'."
,
(
G_PTR
*
)
&
xtrabackup_stream_str
,
(
G_PTR
*
)
&
xtrabackup_stream_str
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -1718,7 +1718,8 @@ xb_get_one_option(int optid,
xtrabackup_target_dir
=
xtrabackup_real_target_dir
;
break
;
case
OPT_XTRA_STREAM
:
if
(
!
strcasecmp
(
argument
,
"xbstream"
))
if
(
!
strcasecmp
(
argument
,
"mbstream"
)
||
!
strcasecmp
(
argument
,
"xbstream"
))
xtrabackup_stream_fmt
=
XB_STREAM_FMT_XBSTREAM
;
else
{
...
...
scripts/wsrep_sst_mariabackup.sh
View file @
f2ccfcac
...
...
@@ -386,8 +386,8 @@ read_cnf()
get_stream
()
{
if
[[
$sfmt
==
'
xbstream'
]]
;
then
wsrep_log_info
"Streaming with
xbstream
"
if
[[
$sfmt
==
'
mbstream'
||
$sfmt
==
'xbstream'
]]
;
then
wsrep_log_info
"Streaming with
${
sfmt
}
"
if
[[
"
$WSREP_SST_OPT_ROLE
"
==
"joiner"
]]
;
then
strmcmd
=
"
${
XBSTREAM_BIN
}
-x"
else
...
...
sql/log_event.cc
View file @
f2ccfcac
...
...
@@ -6731,7 +6731,7 @@ int Load_log_event::copy_log_event(const char *buf, ulong event_len,
{
DBUG_ENTER
(
"Load_log_event::copy_log_event"
);
uint
data_len
;
if
((
int
)
event_len
<
body_offset
)
if
((
int
)
event_len
<
=
body_offset
)
DBUG_RETURN
(
1
);
char
*
buf_end
=
(
char
*
)
buf
+
event_len
;
/* this is the beginning of the post-header */
...
...
@@ -10373,6 +10373,12 @@ Rows_log_event::Rows_log_event(const char *buf, uint event_len,
uint8
const
post_header_len
=
description_event
->
post_header_len
[
event_type
-
1
];
if
(
event_len
<
(
uint
)(
common_header_len
+
post_header_len
))
{
m_cols
.
bitmap
=
0
;
DBUG_VOID_RETURN
;
}
DBUG_PRINT
(
"enter"
,(
"event_len: %u common_header_len: %d "
"post_header_len: %d"
,
event_len
,
common_header_len
,
...
...
@@ -11994,6 +12000,7 @@ Table_map_log_event::Table_map_log_event(const char *buf, uint event_len,
const
char
*
post_start
=
buf
+
common_header_len
;
post_start
+=
TM_MAPID_OFFSET
;
VALIDATE_BYTES_READ
(
post_start
,
buf
,
event_len
);
if
(
post_header_len
==
6
)
{
/* Master is of an intermediate source tree before 5.1.4. Id is 4 bytes */
...
...
sql/log_event.h
View file @
f2ccfcac
...
...
@@ -2193,7 +2193,15 @@ class Query_compressed_log_event:public Query_log_event{
****************************************************************************/
struct
sql_ex_info
{
sql_ex_info
()
{}
/* Remove gcc warning */
sql_ex_info
()
:
cached_new_format
(
-
1
),
field_term_len
(
0
),
enclosed_len
(
0
),
line_term_len
(
0
),
line_start_len
(
0
),
escaped_len
(
0
),
empty_flags
(
0
)
{}
/* Remove gcc warning */
const
char
*
field_term
;
const
char
*
enclosed
;
const
char
*
line_term
;
...
...
sql/wsrep_mysqld.cc
View file @
f2ccfcac
...
...
@@ -628,7 +628,6 @@ int wsrep_init()
{
// enable normal operation in case no provider is specified
wsrep_ready_set
(
TRUE
);
wsrep_inited
=
1
;
global_system_variables
.
wsrep_on
=
0
;
wsrep_init_args
args
;
args
.
logger_cb
=
wsrep_log_cb
;
...
...
@@ -639,10 +638,15 @@ int wsrep_init()
{
DBUG_PRINT
(
"wsrep"
,(
"wsrep::init() failed: %d"
,
rcode
));
WSREP_ERROR
(
"wsrep::init() failed: %d, must shutdown"
,
rcode
);
wsrep_ready_set
(
FALSE
);
wsrep
->
free
(
wsrep
);
free
(
wsrep
);
wsrep
=
NULL
;
}
else
{
wsrep_inited
=
1
;
}
return
rcode
;
}
else
...
...
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