diff --git a/dbms/include/DB/Common/LRUCache.h b/dbms/include/DB/Common/LRUCache.h index a4a8f058db0..4945b04bac6 100644 --- a/dbms/include/DB/Common/LRUCache.h +++ b/dbms/include/DB/Common/LRUCache.h @@ -136,7 +136,7 @@ private: public: bool expired(const Timestamp & last_timestamp, const Delay & expiration_delay) const { - return (expiration_delay == Delay::zero()) || + return (expiration_delay == Delay::zero()) || ((last_timestamp > timestamp) && ((last_timestamp - timestamp) > expiration_delay)); }