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
2b2652d7
Commit
2b2652d7
authored
Mar 25, 2018
by
antirez
Browse files
AOF: run tests with preamble off when it makes sense.
parent
28d28ef3
Changes
4
Show whitespace changes
Inline
Side-by-side
tests/integration/aof-race.tcl
View file @
2b2652d7
set defaults
{
appendonly
{
yes
}
appendfilename
{
appendonly.aof
}
}
set defaults
{
appendonly
{
yes
}
appendfilename
{
appendonly.aof
}
aof-use-rdb-preamble
{
no
}
}
set server_path
[
tmpdir server.aof
]
set aof_path
"
$server
_path/appendonly.aof"
...
...
tests/unit/aofrw.tcl
View file @
2b2652d7
...
...
@@ -64,7 +64,7 @@ start_server {tags {"aofrw"}} {
}
}
start_server
{
tags
{
"aofrw"
}}
{
start_server
{
tags
{
"aofrw"
}
overrides
{
aof-use-rdb-preamble no
}
}
{
test
{
Turning off AOF kills the background writing child if any
}
{
r config set appendonly yes
waitForBgrewriteaof r
...
...
tests/unit/other.tcl
View file @
2b2652d7
...
...
@@ -83,6 +83,7 @@ start_server {tags {"other"}} {
}
{
1
}
test
{
Same dataset digest if saving/reloading as AOF?
}
{
r config set aof-use-rdb-preamble no
r bgrewriteaof
waitForBgrewriteaof r
r debug loadaof
...
...
@@ -126,6 +127,7 @@ start_server {tags {"other"}} {
test
{
EXPIRES after AOF reload
(
without rewrite
)}
{
r flushdb
r config set appendonly yes
r config set aof-use-rdb-preamble no
r set x somevalue
r expire x 1000
r setex y 2000 somevalue
...
...
tests/unit/scripting.tcl
View file @
2b2652d7
...
...
@@ -397,6 +397,7 @@ start_server {tags {"scripting"}} {
test {EVAL processes writes from AOF in read-only slaves} {
r flushall
r config set appendonly yes
r config set aof-use-rdb-preamble no
r eval {redis.call("set",KEYS[1],"100")} 1 foo
r eval {redis.call("incr",KEYS[1])} 1 foo
r eval {redis.call("incr",KEYS[1])} 1 foo
...
...
@@ -629,7 +630,7 @@ foreach cmdrepl {0 1} {
}
start_server {tags {"scripting repl"}} {
start_server
{
overrides
{
appendonly yes
}}
{
start_server {overrides {appendonly yes
aof-use-rdb-preamble no
}} {
test "Connect a slave to the master instance" {
r -1 slaveof [srv 0 host] [srv 0 port]
wait_for_condition 50 100 {
...
...
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