Fixed a bug in logic about truncating stat cache

This commit is contained in:
Takeshi Nakatani 2017-04-02 11:51:58 +00:00
parent 8de992d42d
commit f0f61b3b55

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