mirror of
https://github.com/fluencelabs/redis
synced 2025-04-04 08:41:04 +00:00
Diskless replication tested with the multiple slaves consistency test.
This commit is contained in:
parent
ebb3bd53c2
commit
d6797d34c0
@ -94,8 +94,10 @@ start_server {tags {"repl"}} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach dl {no yes} {
|
||||||
start_server {tags {"repl"}} {
|
start_server {tags {"repl"}} {
|
||||||
set master [srv 0 client]
|
set master [srv 0 client]
|
||||||
|
$master config set repl-diskless-sync $dl
|
||||||
set master_host [srv 0 host]
|
set master_host [srv 0 host]
|
||||||
set master_port [srv 0 port]
|
set master_port [srv 0 port]
|
||||||
set slaves {}
|
set slaves {}
|
||||||
@ -110,7 +112,7 @@ start_server {tags {"repl"}} {
|
|||||||
lappend slaves [srv 0 client]
|
lappend slaves [srv 0 client]
|
||||||
start_server {} {
|
start_server {} {
|
||||||
lappend slaves [srv 0 client]
|
lappend slaves [srv 0 client]
|
||||||
test "Connect multiple slaves at the same time (issue #141)" {
|
test "Connect multiple slaves at the same time (issue #141), diskless=$dl" {
|
||||||
# Send SALVEOF commands to slaves
|
# Send SALVEOF commands to slaves
|
||||||
[lindex $slaves 0] slaveof $master_host $master_port
|
[lindex $slaves 0] slaveof $master_host $master_port
|
||||||
[lindex $slaves 1] slaveof $master_host $master_port
|
[lindex $slaves 1] slaveof $master_host $master_port
|
||||||
@ -170,3 +172,4 @@ start_server {tags {"repl"}} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user