Ignore:
Timestamp:
Jun 13, 2008, 3:23:51 AM (13 years ago)
Author:
Peter Johansson
Message:

fixes #292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/StatsCollection.cc

    r543 r664  
    6363    bool result = true;
    6464    for (map::const_iterator i(stats_.begin()); i!=stats_.end(); ++i) {
    65       if(!i->second->load_cache(is)){
     65      svn_revnum_t cache_rev = i->second->load_cache(is);
     66      if (cache_rev < i->second->revision()) {
    6667        result = false;
    67         i->second->reset();
    68         i->second->parse(path_);
     68        // reset if load cache failed
     69        if (!cache_rev)
     70          i->second->reset();
     71        i->second->parse(path_, cache_rev);
    6972      }
    7073    }
Note: See TracChangeset for help on using the changeset viewer.