bug fix: loadRdb forget to load set data struct

This commit is contained in:
finley
2023-05-08 23:36:56 +08:00
parent a266cc5aba
commit bd418bd82b
5 changed files with 36 additions and 8 deletions

View File

@@ -32,6 +32,8 @@ func TestLoadRDB(t *testing.T) {
asserts.AssertMultiBulkReply(t, result, []string{"1", "1"})
result = rdbDB.Exec(conn, utils.ToCmdLine("ZRange", "zset", "0", "1", "WITHSCORES"))
asserts.AssertMultiBulkReply(t, result, []string{"1", "1"})
result = rdbDB.Exec(conn, utils.ToCmdLine("SCard", "set"))
asserts.AssertIntReply(t, result, 1)
config.Properties = &config.ServerProperties{
AppendOnly: false,