svenxie / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

diskstore: SHUTDOWN does not save modified keys #565

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Redis you are using, in what kind of Operating System?

redis master on os x 10.6

redis_version:2.9.0
redis_git_sha1:6326c3ce
redis_git_dirty:0
arch_bits:64

What is the problem you are experiencing?

when using diskstore, SHUTDOWN does not flush modified keys to disk. all 
changes which happened in the last 'cache-flush-delay' seconds are lost.

What steps will reproduce the problem?

set cache-flush-delay to 600

redis> set foo bar
redis> shutdown

restart redis

redis> get foo
(nil)

Please provide any additional information below.

doc for SHUTDOWN: "This commands makes sure that the DB is switched off without 
the lost of any data."

Original issue reported on code.google.com by tim.los...@wooga.net on 27 May 2011 at 4:26