• antirez's avatar
    Avoid gettimeofday() in expireIfNeeded() when possible. · 0b605e54
    antirez authored
    When the key expires far in the future compared to the cached time in
    server.mstime, calling mstime(), that calls gettimeofday(), should not
    be very useful. Instead when we are near the expire, we want the
    additional precision.
    
    This commit is related to issue #2552.
    0b605e54
db.c 33.3 KB