SHUTDOWN now does the right thing when append only is on, that is, fsync instead to save the snapshot.

This commit is contained in:
antirez
2009-12-18 07:31:44 -05:00
parent fdcaae84d3
commit ac945e2dcf
3 changed files with 25 additions and 15 deletions

View File

@ -1184,7 +1184,11 @@ proc main {server port} {
set _ $err
} {}
test {ZRANGE and ZREVRANGE} {
test {ZRANGE and ZREVRANGE basics} {
list [$r zrange ztmp 0 -1] [$r zrevrange ztmp 0 -1]
} {{y x z} {z x y}}
test {ZRANGE and ZREVRANGE stress testing} {
list [$r zrange ztmp 0 -1] [$r zrevrange ztmp 0 -1]
} {{y x z} {z x y}}