more work on rdb load.

1. Added support of loading of compressed strings.
2. Verified we load expiry info.
3. Extended supported expiry period to 4 years (previously I set 1 year).
This commit is contained in:
Roman Gershman 2022-04-13 10:50:19 +03:00
parent cafabce161
commit 997d2dcb69
16 changed files with 104 additions and 29 deletions

View file

@ -287,4 +287,13 @@ auto BaseFamilyTest::AddFindConn(Protocol proto, std::string_view id) -> TestCon
return it->second.get();
}
RespVec BaseFamilyTest::Array(const RespExpr& expr) {
CHECK(expr.type == RespExpr::ARRAY || expr.type == RespExpr::NIL_ARRAY);
if (expr.type == RespExpr::NIL_ARRAY)
return RespVec{};
const RespVec* src = get<RespVec*>(expr.u);
return *src;
}
} // namespace dfly