1
0
mirror of https://github.com/fluencelabs/redis synced 2025-06-15 10:11:21 +00:00
Files
deps
src
tests
assets
cluster
helpers
integration
aof-race.tcl
aof.tcl
convert-zipmap-hash-on-load.tcl
rdb.tcl
redis-cli.tcl
replication-2.tcl
replication-3.tcl
replication-4.tcl
replication-psync.tcl
replication.tcl
sentinel
support
tmp
unit
instances.tcl
test_helper.tcl
utils
.gitignore
00-RELEASENOTES
BUGS
CONTRIBUTING
COPYING
INSTALL
MANIFESTO
Makefile
README
redis.conf
runtest
runtest-cluster
runtest-sentinel
sentinel.conf
redis/tests/integration/replication-2.tcl

28 lines
976 B
Tcl
Raw Normal View History

start_server {tags {"repl"}} {
start_server {} {
test {First server should have role slave after SLAVEOF} {
r -1 slaveof [srv 0 host] [srv 0 port]
after 1000
s -1 role
} {slave}
test {MASTER and SLAVE dataset should be identical after complex ops} {
createComplexDataset r 10000
after 500
if {[r debug digest] ne [r -1 debug digest]} {
set csv1 [csvdump r]
set csv2 [csvdump {r -1}]
set fd [open /tmp/repldump1.txt w]
puts -nonewline $fd $csv1
close $fd
set fd [open /tmp/repldump2.txt w]
puts -nonewline $fd $csv2
close $fd
puts "Master - Slave inconsistency"
puts "Run diff -u against /tmp/repldump*.txt for more info"
}
assert_equal [r debug digest] [r -1 debug digest]
}
}
}