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
ee92c043
Commit
ee92c043
authored
Jun 19, 2013
by
antirez
Browse files
Test: regression test for #1163.
parent
8e63fd07
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scripting.tcl
View file @
ee92c043
...
@@ -281,6 +281,23 @@ start_server {tags {"scripting"}} {
...
@@ -281,6 +281,23 @@ start_server {tags {"scripting"}} {
assert_equal $rand1 $rand2
assert_equal $rand1 $rand2
assert
{
$rand2
ne $rand3
}
assert
{
$rand2
ne $rand3
}
}
}
test
{
EVAL processes writes from AOF in read-only slaves
}
{
r flushall
r config set appendonly yes
r eval
{
redis.call
(
"set"
,
"foo"
,
"100"
)}
0
r eval
{
redis.call
(
"incr"
,
"foo"
)}
0
r eval
{
redis.call
(
"incr"
,
"foo"
)}
0
wait_for_condition 50 100
{
[
s aof_rewrite_in_progress
]
== 0
}
else
{
fail
"AOF rewrite can't complete after CONFIG SET appendonly yes."
}
r config set slave-read-only yes
r slaveof 127.0.0.1 0
r debug loadaof
r get foo
}
{
102
}
}
}
# Start a new server since the last test in this stanza will kill the
# Start a new server since the last test in this stanza will kill the
...
...
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