Diskless replication tested with the multiple slaves consistency test.

This commit is contained in:
antirez 2014-10-24 09:49:22 +02:00
parent ebb3bd53c2
commit d6797d34c0

View File

@ -94,8 +94,10 @@ start_server {tags {"repl"}} {
}
}
foreach dl {no yes} {
start_server {tags {"repl"}} {
set master [srv 0 client]
$master config set repl-diskless-sync $dl
set master_host [srv 0 host]
set master_port [srv 0 port]
set slaves {}
@ -110,7 +112,7 @@ start_server {tags {"repl"}} {
lappend slaves [srv 0 client]
start_server {} {
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
[lindex $slaves 0] slaveof $master_host $master_port
[lindex $slaves 1] slaveof $master_host $master_port
@ -170,3 +172,4 @@ start_server {tags {"repl"}} {
}
}
}
}