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

@ -103,7 +103,7 @@ class DbSlice {
// returns absolute time of the expiration.
uint64_t ExpireTime(ExpireIterator it) const {
return it.is_done() ? 0 : expire_base_[0] + it->second.duration();
return it.is_done() ? 0 : expire_base_[0] + it->second.duration_ms();
}
ExpirePeriod FromAbsoluteTime(uint64_t time_ms) const {