summaryrefslogtreecommitdiffstats
path: root/src/stat_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat_cache.cc')
-rw-r--r--src/stat_cache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stat_cache.cc b/src/stat_cache.cc
index 0b717b4..3309837 100644
--- a/src/stat_cache.cc
+++ b/src/stat_cache.cc
@@ -38,6 +38,8 @@ void StatCache::Dump() {
}
void StatCache::Invalidate() {
- for (Paths::iterator i = paths_.begin(); i != paths_.end(); ++i)
+ for (Paths::iterator i = paths_.begin(); i != paths_.end(); ++i) {
i->second->mtime_ = -1;
+ i->second->node_->dirty_ = false;
+ }
}