Storage: Make setters globally atomic.

Previously, setters were locally but not globally atomic because they
used GetEntry() (globally atomic) in conjunction with locally atomic
gets/sets to the StorageEntry.  To support synchronizing network handshakes
they need to be globally atomic.

GetEntry() has been removed due to this issue, so a helper was added to
StorageTest instead.
This commit is contained in:
Peter Johnson
2015-07-26 09:27:23 -07:00
parent 3c7cb363ba
commit 18659257d3
3 changed files with 34 additions and 31 deletions

View File

@@ -92,7 +92,6 @@ class Storage {
// Finds, but does not create entry. Returns nullptr if not found.
std::shared_ptr<StorageEntry> FindEntry(StringRef name) const;
std::shared_ptr<StorageEntry> GetEntry(StringRef name);
// Accessors required by Dispatcher.
void EnableUpdates() { m_updates_enabled = true; }