Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bbf44ecf
Commit
bbf44ecf
authored
Nov 12, 2009
by
antirez
Browse files
Redis test will not fail the SAVE test even if a background save is in progress
parent
0f5f7e9a
Changes
1
Show whitespace changes
Inline
Side-by-side
test-redis.tcl
View file @
bbf44ecf
...
...
@@ -533,6 +533,17 @@ proc main {server port} {
}
{{
1 2 3
}
0
}
test
{
SAVE - make sure there are all the types as values
}
{
# Wait for a background saving in progress to terminate
while 1
{
set i
[
$r
info
]
if
{[
string match
{
*bgsave_in_progress:1*
}
$i
]}
{
puts -nonewline
"
\n
Waiting for background save to finish... "
flush stdout
after 100
}
else
{
break
}
}
$r lpush mysavelist hello
$r lpush mysavelist world
$r set myemptykey
{}
...
...
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