Merge pull request #558 from ggtakec/master

Fixed a bug in logic about truncating stat cache
This commit is contained in:
Takeshi Nakatani 2017-04-02 21:02:15 +09:00 committed by GitHub
commit 79ea1a1561

View File

@ -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;
}