• antirez's avatar
    Avoid gettimeofday() in expireIfNeeded() when possible. · db5cdb17
    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.
    db5cdb17
db.c 40.8 KB