mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
-sfix(rdb_load): replica load expired keys
This commit is contained in:
parent
bafad66fc3
commit
dd03ce0cf0
4 changed files with 24 additions and 16 deletions
|
@ -231,6 +231,15 @@ TEST_F(RdbTest, ReloadTtl) {
|
|||
EXPECT_LT(990, CheckedInt({"ttl", "key"}));
|
||||
}
|
||||
|
||||
TEST_F(RdbTest, ReloadExpired) {
|
||||
Run({"set", "key", "val"});
|
||||
Run({"expire", "key", "2"});
|
||||
sleep(2);
|
||||
Run({"debug", "reload"});
|
||||
auto resp = Run({"get", "key"});
|
||||
ASSERT_THAT(resp, ArgType(RespExpr::NIL));
|
||||
}
|
||||
|
||||
TEST_F(RdbTest, SaveFlush) {
|
||||
Run({"debug", "populate", "500000"});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue