diff options
author | Evan Martin <martine@danga.com> | 2013-01-09 01:52:44 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-08 22:01:51 (GMT) |
commit | e223be80b6d308d64674ec884df461fe5b8e42e6 (patch) | |
tree | 7f3f5d104c611416694771b891ac901a4d477b87 /src/deps_log.cc | |
parent | ec92fe3da6e792f9e14a490675aebc132ec37ef6 (diff) | |
download | Ninja-e223be80b6d308d64674ec884df461fe5b8e42e6.zip Ninja-e223be80b6d308d64674ec884df461fe5b8e42e6.tar.gz Ninja-e223be80b6d308d64674ec884df461fe5b8e42e6.tar.bz2 |
depslog: track dead record count
Diffstat (limited to 'src/deps_log.cc')
-rw-r--r-- | src/deps_log.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc index 5031515..b1ec009 100644 --- a/src/deps_log.cc +++ b/src/deps_log.cc @@ -171,8 +171,10 @@ bool DepsLog::Load(const string& path, State* state, string* err) { if (out_id >= (int)deps_.size()) deps_.resize(out_id + 1); - if (deps_[out_id]) + if (deps_[out_id]) { + ++dead_record_count_; delete deps_[out_id]; + } deps_[out_id] = deps; } else { StringPiece path(buf, size); |