Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1eec780e
Commit
1eec780e
authored
Dec 13, 2016
by
antirez
Browse files
Writable slaves expires: unit test.
parent
9a8bc6d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/replication-3.tcl
View file @
1eec780e
...
...
@@ -30,6 +30,18 @@ start_server {tags {"repl"}} {
}
assert_equal
[
r debug digest
]
[
r -1 debug digest
]
}
test
{
Slave is able to evict keys created in writable slaves
}
{
r -1 select 5
assert
{[
r -1 dbsize
]
== 0
}
r -1 config set slave-read-only no
r -1 set key1 1 ex 5
r -1 set key2 2 ex 5
r -1 set key3 3 ex 5
assert
{[
r -1 dbsize
]
== 3
}
after 6000
r -1 dbsize
}
{
0
}
}
}
...
...
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