Fix handling of deleted values in several places. (#241)

Now that the m_entries entry is kept, other places can't assume that
a value exists simply because the entry exists.
This commit is contained in:
Peter Johnson
2017-10-02 13:06:39 -07:00
committed by GitHub
parent 303df626a2
commit f81b6fbcd6
3 changed files with 63 additions and 27 deletions

View File

@@ -251,7 +251,7 @@ class Storage : public IStorage {
template <typename F>
void DeleteAllEntriesImpl(bool local, F should_delete);
void DeleteAllEntriesImpl(bool local);
Entry* GetOrNew(StringRef name, bool* is_new = nullptr);
Entry* GetOrNew(StringRef name);
};
} // namespace nt