mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
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:
parent
cafabce161
commit
997d2dcb69
16 changed files with 104 additions and 29 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue