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
c6bfb5b4
Commit
c6bfb5b4
authored
Jun 13, 2007
by
mats@kindahl-laptop.dnsalias.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some trivial test problems.
parent
f317103e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
7 deletions
+20
-7
mysql-test/r/rpl_loaddata_fatal.result
mysql-test/r/rpl_loaddata_fatal.result
+3
-0
mysql-test/r/rpl_slave_skip.result
mysql-test/r/rpl_slave_skip.result
+4
-4
mysql-test/t/rpl_loaddata_fatal.test
mysql-test/t/rpl_loaddata_fatal.test
+10
-0
mysql-test/t/rpl_slave_skip.test
mysql-test/t/rpl_slave_skip.test
+2
-2
sql/log_event.cc
sql/log_event.cc
+1
-1
No files found.
mysql-test/r/rpl_loaddata_fatal.result
View file @
c6bfb5b4
...
...
@@ -85,3 +85,6 @@ Last_IO_Errno #
Last_IO_Error #
Last_SQL_Errno 1589
Last_SQL_Error Fatal error: Not enough memory
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
START SLAVE;
DROP TABLE t1;
mysql-test/r/rpl_slave_skip.result
View file @
c6bfb5b4
...
...
@@ -72,8 +72,8 @@ Master_SSL_Cipher
Master_SSL_Key
Seconds_Behind_Master #
Master_SSL_Verify_Server_Cert No
Last_IO_Errno
0
Last_IO_Error
Last_IO_Errno
#
Last_IO_Error
#
Last_SQL_Errno 0
Last_SQL_Error
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
...
...
@@ -136,8 +136,8 @@ Master_SSL_Cipher
Master_SSL_Key
Seconds_Behind_Master #
Master_SSL_Verify_Server_Cert No
Last_IO_Errno
0
Last_IO_Error
Last_IO_Errno
#
Last_IO_Error
#
Last_SQL_Errno 0
Last_SQL_Error
**** On Master ****
...
...
mysql-test/t/rpl_loaddata_fatal.test
View file @
c6bfb5b4
source
include
/
have_binlog_format_mixed_or_statement
.
inc
;
source
include
/
have_debug
.
inc
;
source
include
/
master
-
slave
.
inc
;
# We do this little stunt to make sure that the slave has started
...
...
@@ -17,3 +18,12 @@ LOAD DATA INFILE '../std_data_ln/rpl_loaddata.dat' INTO TABLE t1;
connection
slave
;
wait_for_slave_to_stop
;
source
include
/
show_slave_status
.
inc
;
connection
slave
;
SET
GLOBAL
SQL_SLAVE_SKIP_COUNTER
=
1
;
START
SLAVE
;
connection
master
;
DROP
TABLE
t1
;
sync_slave_with_master
;
mysql-test/t/rpl_slave_skip.test
View file @
c6bfb5b4
...
...
@@ -27,7 +27,7 @@ connection slave;
START
SLAVE
UNTIL
MASTER_LOG_FILE
=
'master-bin.000001'
,
MASTER_LOG_POS
=
484
;
wait_for_slave_to_stop
;
--
replace_result
$MASTER_MYPORT
MASTER_PORT
--
replace_column
1
# 8 # 9 # 23 # 33 #
--
replace_column
1
# 8 # 9 # 23 # 33 #
35 # 36 #
query_vertical
SHOW
SLAVE
STATUS
;
# Now we skip *one* table map event. If the execution starts right
...
...
@@ -62,7 +62,7 @@ SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
START
SLAVE
;
sync_with_master
;
--
replace_result
$MASTER_MYPORT
MASTER_PORT
--
replace_column
1
# 8 # 9 # 23 # 33 #
--
replace_column
1
# 8 # 9 # 23 # 33 #
35 # 36 #
query_vertical
SHOW
SLAVE
STATUS
;
--
echo
****
On
Master
****
...
...
sql/log_event.cc
View file @
c6bfb5b4
...
...
@@ -5488,7 +5488,7 @@ Execute_load_query_log_event::do_apply_event(RELAY_LOG_INFO const *rli)
buf
=
(
char
*
)
my_malloc
(
q_len
+
1
-
(
fn_pos_end
-
fn_pos_start
)
+
(
FN_REFLEN
+
10
)
+
10
+
8
+
5
,
MYF
(
MY_WME
));
DBUG_EXECUTE_IF
(
"LOAD_DATA_INFILE_has_fatal_error"
,
buf
=
NULL
;);
DBUG_EXECUTE_IF
(
"LOAD_DATA_INFILE_has_fatal_error"
,
my_free
(
buf
,
MYF
(
0
));
buf
=
NULL
;);
/* Replace filename and LOCAL keyword in query before executing it */
if
(
buf
==
NULL
)
...
...
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