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
e1c6f28f
Commit
e1c6f28f
authored
Sep 28, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.0-galera' into 10.1
parents
735a4a17
c9ded859
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
2 deletions
+79
-2
mysql-test/suite/wsrep/r/wsrep_rpl.result
mysql-test/suite/wsrep/r/wsrep_rpl.result
+22
-0
mysql-test/suite/wsrep/t/wsrep_rpl.cnf
mysql-test/suite/wsrep/t/wsrep_rpl.cnf
+1
-0
mysql-test/suite/wsrep/t/wsrep_rpl.test
mysql-test/suite/wsrep/t/wsrep_rpl.test
+50
-0
scripts/wsrep_sst_xtrabackup-v2.sh
scripts/wsrep_sst_xtrabackup-v2.sh
+1
-1
scripts/wsrep_sst_xtrabackup.sh
scripts/wsrep_sst_xtrabackup.sh
+1
-1
sql/handler.cc
sql/handler.cc
+4
-0
No files found.
mysql-test/suite/wsrep/r/wsrep_rpl.result
0 → 100644
View file @
e1c6f28f
include/master-slave.inc
[connection master]
#
# MDEV-10714: Could not execute Delete_rows event on table;
# wsrep_max_ws_rows exceeded. Error_Code 1180
#
CREATE TABLE t1(i INT) ENGINE = INNODB;
SET @@GLOBAL.wsrep_max_ws_rows = 1;
INSERT INTO t1 VALUES(1), (2);
SELECT COUNT(*) = 2 FROM t1;
COUNT(*) = 2
1
SET @@GLOBAL.wsrep_max_ws_rows = 1;
DELETE FROM t1;
SELECT COUNT(*) = 0 FROM t1;
COUNT(*) = 0
1
DROP TABLE t1;
SET @@GLOBAL.wsrep_max_ws_rows = 0;
SET @@GLOBAL.wsrep_max_ws_rows = 0;
include/rpl_end.inc
# End of test.
mysql-test/suite/wsrep/t/wsrep_rpl.cnf
0 → 100644
View file @
e1c6f28f
!include ../../rpl/my.cnf
mysql-test/suite/wsrep/t/wsrep_rpl.test
0 → 100644
View file @
e1c6f28f
--
source
include
/
have_wsrep
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
master
-
slave
.
inc
--
echo
#
--
echo
# MDEV-10714: Could not execute Delete_rows event on table;
--
echo
# wsrep_max_ws_rows exceeded. Error_Code 1180
--
echo
#
# Save wsrep_max_ws_rows on master and slave.
connection
master
;
let
$wsrep_max_ws_rows_master
=
`SELECT @@GLOBAL.wsrep_max_ws_rows`
;
connection
slave
;
let
$wsrep_max_ws_rows_slave
=
`SELECT @@GLOBAL.wsrep_max_ws_rows`
;
connection
master
;
CREATE
TABLE
t1
(
i
INT
)
ENGINE
=
INNODB
;
# Setting wsrep_max_ws_rows should have no impact on replication master
# unless its a cluster node.
SET
@@
GLOBAL
.
wsrep_max_ws_rows
=
1
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
);
sync_slave_with_master
;
SELECT
COUNT
(
*
)
=
2
FROM
t1
;
connection
slave
;
# Setting wsrep_max_ws_rows should have no impact on replication slave
# unless its a cluster node.
SET
@@
GLOBAL
.
wsrep_max_ws_rows
=
1
;
connection
master
;
DELETE
FROM
t1
;
sync_slave_with_master
;
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
connection
master
;
DROP
TABLE
t1
;
sync_slave_with_master
;
# Restore wsrep_max_ws_rows on master and slave
connection
master
;
eval
SET
@@
GLOBAL
.
wsrep_max_ws_rows
=
$wsrep_max_ws_rows_master
;
connection
slave
;
eval
SET
@@
GLOBAL
.
wsrep_max_ws_rows
=
$wsrep_max_ws_rows_slave
;
--
source
include
/
rpl_end
.
inc
--
echo
# End of test.
scripts/wsrep_sst_xtrabackup-v2.sh
View file @
e1c6f28f
...
...
@@ -176,7 +176,7 @@ get_transfer()
fi
wsrep_log_info
"Using netcat as streamer"
if
[[
"
$WSREP_SST_OPT_ROLE
"
==
"joiner"
]]
;
then
if
nc
-h
|
grep
-q
ncat
;
then
if
nc
-h
2>&1
|
grep
-q
ncat
;
then
tcmd
=
"nc -l
${
TSST_PORT
}
"
else
tcmd
=
"nc -dl
${
TSST_PORT
}
"
...
...
scripts/wsrep_sst_xtrabackup.sh
View file @
e1c6f28f
...
...
@@ -149,7 +149,7 @@ get_transfer()
fi
wsrep_log_info
"Using netcat as streamer"
if
[[
"
$WSREP_SST_OPT_ROLE
"
==
"joiner"
]]
;
then
if
nc
-h
|
grep
-q
ncat
;
then
if
nc
-h
2>&1
|
grep
-q
ncat
;
then
tcmd
=
"nc -l
${
TSST_PORT
}
"
else
tcmd
=
"nc -dl
${
TSST_PORT
}
"
...
...
sql/handler.cc
View file @
e1c6f28f
...
...
@@ -5881,6 +5881,10 @@ static int check_wsrep_max_ws_rows()
if
(
wsrep_max_ws_rows
)
{
THD
*
thd
=
current_thd
;
if
(
!
WSREP
(
thd
))
return
0
;
thd
->
wsrep_affected_rows
++
;
if
(
thd
->
wsrep_exec_mode
!=
REPL_RECV
&&
thd
->
wsrep_affected_rows
>
wsrep_max_ws_rows
)
...
...
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