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
fa57e118
Commit
fa57e118
authored
Feb 11, 2019
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-10963 manual merge 10.1->10.3.
parent
0cdcb5f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
61 deletions
+17
-61
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+2
-4
mysql-test/main/mysqlbinlog_row_minimal.result
mysql-test/main/mysqlbinlog_row_minimal.result
+6
-55
sql/log_event.cc
sql/log_event.cc
+8
-2
sql/log_event_old.cc
sql/log_event_old.cc
+1
-0
No files found.
client/mysqlbinlog.cc
View file @
fa57e118
...
@@ -896,10 +896,8 @@ static bool print_base64(PRINT_EVENT_INFO *print_event_info, Log_event *ev)
...
@@ -896,10 +896,8 @@ static bool print_base64(PRINT_EVENT_INFO *print_event_info, Log_event *ev)
type_str
);
type_str
);
return
1
;
return
1
;
}
}
ev
->
print
(
result_file
,
print_event_info
);
return
return
ev
->
print
(
result_file
,
print_event_info
);
print_event_info
->
head_cache
.
error
==
-
1
||
print_event_info
->
body_cache
.
error
==
-
1
;
}
}
...
...
mysql-test/main/mysqlbinlog_row_minimal.result
View file @
fa57e118
...
@@ -237,13 +237,7 @@ BEGIN
...
@@ -237,13 +237,7 @@ BEGIN
#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
#<date> server id 1 end_log_pos 2591 CRC32 XXX Table_map: `test`.`t2` mapped to number num
#<date> server id 1 end_log_pos 2591 CRC32 XXX Table_map: `test`.`t2` mapped to number num
# at 2591
# at 2591
<<<<<<< HEAD:mysql-test/main/mysqlbinlog_row_minimal.result
#<date> server id 1 end_log_pos 2657 CRC32 XXX Update_rows: table id 33 flags: STMT_END_F
#<date> server id 1 end_log_pos 2665 CRC32 XXX Update_rows: table id 33 flags: STMT_END_F
||||||| merged common ancestors
#<date> server id 1 end_log_pos 2665 CRC32 XXX Update_rows: table id 32 flags: STMT_END_F
=======
#<date> server id 1 end_log_pos 2657 CRC32 XXX Update_rows: table id 32 flags: STMT_END_F
>>>>>>> 10.2:mysql-test/r/mysqlbinlog_row_minimal.result
### UPDATE `test`.`t2`
### UPDATE `test`.`t2`
### WHERE
### WHERE
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
...
@@ -259,17 +253,9 @@ BEGIN
...
@@ -259,17 +253,9 @@ BEGIN
### @1=12 /* INT meta=0 nullable=0 is_null=0 */
### @1=12 /* INT meta=0 nullable=0 is_null=0 */
### SET
### SET
### @5=5 /* INT meta=0 nullable=1 is_null=0 */
### @5=5 /* INT meta=0 nullable=1 is_null=0 */
<<<<<<< HEAD:mysql-test/main/mysqlbinlog_row_minimal.result
# Number of rows: 3
# Number of rows: 3
# at 2665
#<date> server id 1 end_log_pos 2738 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
||||||| merged common ancestors
# at 2665
#<date> server id 1 end_log_pos 2738 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
=======
# at 2657
# at 2657
#<date> server id 1 end_log_pos 2730 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
#<date> server id 1 end_log_pos 2730 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
>>>>>>> 10.2:mysql-test/r/mysqlbinlog_row_minimal.result
SET TIMESTAMP=X/*!*/;
SET TIMESTAMP=X/*!*/;
COMMIT
COMMIT
/*!*/;
/*!*/;
...
@@ -282,19 +268,9 @@ BEGIN
...
@@ -282,19 +268,9 @@ BEGIN
# at 2809
# at 2809
#<date> server id 1 end_log_pos 2809 CRC32 XXX Annotate_rows:
#<date> server id 1 end_log_pos 2809 CRC32 XXX Annotate_rows:
#Q> DELETE FROM t1
#Q> DELETE FROM t1
<<<<<<< HEAD:mysql-test/main/mysqlbinlog_row_minimal.result
#<date> server id 1 end_log_pos 2873 CRC32 XXX Table_map: `test`.`t1` mapped to number num
# at 2873
#<date> server id 1 end_log_pos 2927 CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
||||||| merged common ancestors
#<date> server id 1 end_log_pos 2873 CRC32 XXX Table_map: `test`.`t1` mapped to number num
# at 2873
#<date> server id 1 end_log_pos 2927 CRC32 XXX Delete_rows: table id 31 flags: STMT_END_F
=======
#<date> server id 1 end_log_pos 2865 CRC32 XXX Table_map: `test`.`t1` mapped to number num
#<date> server id 1 end_log_pos 2865 CRC32 XXX Table_map: `test`.`t1` mapped to number num
# at 2865
# at 2865
#<date> server id 1 end_log_pos 2919 CRC32 XXX Delete_rows: table id 31 flags: STMT_END_F
#<date> server id 1 end_log_pos 2919 CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
>>>>>>> 10.2:mysql-test/r/mysqlbinlog_row_minimal.result
### DELETE FROM `test`.`t1`
### DELETE FROM `test`.`t1`
### WHERE
### WHERE
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
...
@@ -307,17 +283,9 @@ BEGIN
...
@@ -307,17 +283,9 @@ BEGIN
### DELETE FROM `test`.`t1`
### DELETE FROM `test`.`t1`
### WHERE
### WHERE
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
<<<<<<< HEAD:mysql-test/main/mysqlbinlog_row_minimal.result
# Number of rows: 4
# Number of rows: 4
# at 2927
#<date> server id 1 end_log_pos 3000 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
||||||| merged common ancestors
# at 2927
#<date> server id 1 end_log_pos 3000 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
=======
# at 2919
# at 2919
#<date> server id 1 end_log_pos 2992 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
#<date> server id 1 end_log_pos 2992 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
>>>>>>> 10.2:mysql-test/r/mysqlbinlog_row_minimal.result
SET TIMESTAMP=X/*!*/;
SET TIMESTAMP=X/*!*/;
COMMIT
COMMIT
/*!*/;
/*!*/;
...
@@ -330,19 +298,9 @@ BEGIN
...
@@ -330,19 +298,9 @@ BEGIN
# at 3071
# at 3071
#<date> server id 1 end_log_pos 3071 CRC32 XXX Annotate_rows:
#<date> server id 1 end_log_pos 3071 CRC32 XXX Annotate_rows:
#Q> DELETE FROM t2
#Q> DELETE FROM t2
<<<<<<< HEAD:mysql-test/main/mysqlbinlog_row_minimal.result
#<date> server id 1 end_log_pos 3135 CRC32 XXX Table_map: `test`.`t2` mapped to number num
# at 3135
#<date> server id 1 end_log_pos 3189 CRC32 XXX Delete_rows: table id 33 flags: STMT_END_F
||||||| merged common ancestors
#<date> server id 1 end_log_pos 3135 CRC32 XXX Table_map: `test`.`t2` mapped to number num
# at 3135
#<date> server id 1 end_log_pos 3189 CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
=======
#<date> server id 1 end_log_pos 3127 CRC32 XXX Table_map: `test`.`t2` mapped to number num
#<date> server id 1 end_log_pos 3127 CRC32 XXX Table_map: `test`.`t2` mapped to number num
# at 3127
# at 3127
#<date> server id 1 end_log_pos 3181 CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
#<date> server id 1 end_log_pos 3181 CRC32 XXX Delete_rows: table id 33 flags: STMT_END_F
>>>>>>> 10.2:mysql-test/r/mysqlbinlog_row_minimal.result
### DELETE FROM `test`.`t2`
### DELETE FROM `test`.`t2`
### WHERE
### WHERE
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
...
@@ -355,17 +313,9 @@ BEGIN
...
@@ -355,17 +313,9 @@ BEGIN
### DELETE FROM `test`.`t2`
### DELETE FROM `test`.`t2`
### WHERE
### WHERE
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
<<<<<<< HEAD:mysql-test/main/mysqlbinlog_row_minimal.result
# Number of rows: 4
# Number of rows: 4
# at 3189
#<date> server id 1 end_log_pos 3262 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
||||||| merged common ancestors
# at 3189
#<date> server id 1 end_log_pos 3262 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
=======
# at 3181
# at 3181
#<date> server id 1 end_log_pos 3254 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
#<date> server id 1 end_log_pos 3254 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
>>>>>>> 10.2:mysql-test/r/mysqlbinlog_row_minimal.result
SET TIMESTAMP=X/*!*/;
SET TIMESTAMP=X/*!*/;
COMMIT
COMMIT
/*!*/;
/*!*/;
...
@@ -415,15 +365,16 @@ BEGIN
...
@@ -415,15 +365,16 @@ BEGIN
#Q> UPDATE t1 t1 INNER JOIN t2 t2 ON t1.ref_id = t2.id
#Q> UPDATE t1 t1 INNER JOIN t2 t2 ON t1.ref_id = t2.id
#Q> SET t1.is_deleted = TRUE
#Q> SET t1.is_deleted = TRUE
#Q> WHERE t1.id =
#Q> WHERE t1.id =
#<date> server id 1 end_log_pos 594 CRC32 XXX Table_map: `test`.`t1` mapped to number 3
4
#<date> server id 1 end_log_pos 594 CRC32 XXX Table_map: `test`.`t1` mapped to number 3
5
# at 594
# at 594
#<date> server id 1 end_log_pos 643 CRC32 XXX Update_rows: table id 3
4
flags: STMT_END_F
#<date> server id 1 end_log_pos 643 CRC32 XXX Update_rows: table id 3
5
flags: STMT_END_F
### UPDATE `test`.`t1`
### UPDATE `test`.`t1`
### WHERE
### WHERE
### @1=1 /* LONGINT meta=0 nullable=0 is_null=0 */
### @1=1 /* LONGINT meta=0 nullable=0 is_null=0 */
### SET
### SET
### @2=b'1' /* BIT(1) meta=1 nullable=1 is_null=0 */
### @2=b'1' /* BIT(1) meta=1 nullable=1 is_null=0 */
### @3=X /* TIMESTAMP(0) meta=0 nullable=0 is_null=0 */
### @3=X /* TIMESTAMP(0) meta=0 nullable=0 is_null=0 */
# Number of rows: 1
# at 643
# at 643
#<date> server id 1 end_log_pos 725 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
#<date> server id 1 end_log_pos 725 CRC32 XXX Query thread_id=5 exec_time=x error_code=0
SET TIMESTAMP=X/*!*/;
SET TIMESTAMP=X/*!*/;
...
...
sql/log_event.cc
View file @
fa57e118
...
@@ -3897,7 +3897,7 @@ bool Log_event::print_base64(IO_CACHE* file,
...
@@ -3897,7 +3897,7 @@ bool Log_event::print_base64(IO_CACHE* file,
if
(
print_event_info
->
base64_output_mode
!=
if
(
print_event_info
->
base64_output_mode
!=
BASE64_OUTPUT_DECODE_ROWS
)
BASE64_OUTPUT_DECODE_ROWS
)
my_b_printf
(
file
,
"'%s
\n
"
,
print_event_info
->
delimiter
);
my_b_printf
(
file
,
"'%s
\n
"
,
print_event_info
->
delimiter
);
ev
->
print_verbose
(
file
,
print_event_info
);
e
rror
=
e
v
->
print_verbose
(
file
,
print_event_info
);
}
}
else
else
{
{
...
@@ -13077,7 +13077,13 @@ bool Table_map_log_event::print(FILE *file, PRINT_EVENT_INFO *print_event_info)
...
@@ -13077,7 +13077,13 @@ bool Table_map_log_event::print(FILE *file, PRINT_EVENT_INFO *print_event_info)
}
}
if
(
!
print_event_info
->
short_form
||
print_event_info
->
print_row_count
)
if
(
!
print_event_info
->
short_form
||
print_event_info
->
print_row_count
)
{
{
if
(
print_base64
(
&
print_event_info
->
body_cache
,
print_event_info
,
TRUE
)
||
bool
do_print_encoded
=
print_event_info
->
base64_output_mode
!=
BASE64_OUTPUT_NEVER
&&
print_event_info
->
base64_output_mode
!=
BASE64_OUTPUT_DECODE_ROWS
&&
!
print_event_info
->
short_form
;
if
(
print_base64
(
&
print_event_info
->
body_cache
,
print_event_info
,
do_print_encoded
)
||
copy_event_cache_to_file_and_reinit
(
&
print_event_info
->
head_cache
,
copy_event_cache_to_file_and_reinit
(
&
print_event_info
->
head_cache
,
file
))
file
))
goto
err
;
goto
err
;
...
...
sql/log_event_old.cc
View file @
fa57e118
...
@@ -1851,6 +1851,7 @@ bool Old_rows_log_event::print_helper(FILE *file,
...
@@ -1851,6 +1851,7 @@ bool Old_rows_log_event::print_helper(FILE *file,
IO_CACHE
*
const
body
=
&
print_event_info
->
body_cache
;
IO_CACHE
*
const
body
=
&
print_event_info
->
body_cache
;
bool
do_print_encoded
=
bool
do_print_encoded
=
print_event_info
->
base64_output_mode
!=
BASE64_OUTPUT_DECODE_ROWS
&&
print_event_info
->
base64_output_mode
!=
BASE64_OUTPUT_DECODE_ROWS
&&
print_event_info
->
base64_output_mode
!=
BASE64_OUTPUT_NEVER
&&
!
print_event_info
->
short_form
;
!
print_event_info
->
short_form
;
if
(
!
print_event_info
->
short_form
)
if
(
!
print_event_info
->
short_form
)
...
...
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