mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Redis test will not fail the SAVE test even if a background save is in progress
This commit is contained in:
parent
0f5f7e9a82
commit
bbf44ecf1b
@ -533,6 +533,17 @@ proc main {server port} {
|
|||||||
} {{1 2 3} 0}
|
} {{1 2 3} 0}
|
||||||
|
|
||||||
test {SAVE - make sure there are all the types as values} {
|
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 "\nWaiting for background save to finish... "
|
||||||
|
flush stdout
|
||||||
|
after 100
|
||||||
|
} else {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
$r lpush mysavelist hello
|
$r lpush mysavelist hello
|
||||||
$r lpush mysavelist world
|
$r lpush mysavelist world
|
||||||
$r set myemptykey {}
|
$r set myemptykey {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user