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
6c294101
Commit
6c294101
authored
Jan 26, 2012
by
antirez
Browse files
false positive in expire tests mitigated with a sleep, but other solutions exist if needed later.
parent
7f7a13b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/other.tcl
View file @
6c294101
...
...
@@ -141,6 +141,11 @@ start_server {tags {"other"}} {
# Reload and check
waitForBgrewriteaof r
# We need to wait two seconds to avoid false positives here, otherwise
# the DEBUG LOADAOF command may read a partial file.
# Another solution would be to set the fsync policy to no, since this
# prevents write
()
to be delayed by the completion of fsync
()
.
after 2000
r debug loadaof
set ttl
[
r ttl x
]
assert
{
$ttl
> 900 && $ttl <= 1000
}
...
...
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