From f0f61b3b55d0f923ebe0ec7cc0f741fc33d1f748 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 2 Apr 2017 11:51:58 +0000 Subject: [PATCH] Fixed a bug in logic about truncating stat cache --- src/cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.cpp b/src/cache.cpp index 53557d0..53523de 100644 --- a/src/cache.cpp +++ b/src/cache.cpp @@ -505,7 +505,7 @@ bool StatCache::TruncateCache(void) if(IsExpireTime){ for(stat_cache_t::iterator iter = stat_cache.begin(); iter != stat_cache.end(); ){ stat_cache_entry* entry = iter->second; - if(!entry || (0L < entry->notruncate && IsExpireStatCacheTime(entry->cache_date, ExpireTime))){ + if(!entry || (0L == entry->notruncate && IsExpireStatCacheTime(entry->cache_date, ExpireTime))){ if(entry){ delete entry; }