diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-03-31 00:11:46 -0500 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-03-31 00:24:19 -0500 |
commit | 16aed11dc3dc933c0b92d98eed84c154dbbeb8bd (patch) | |
tree | b8dc6a95b95549032d1cae527cb85b2272a8eb22 | |
parent | 1c9f16ee53d339f29308414ee3ecda9c8bee1a01 (diff) | |
download | phosphor-logging-16aed11dc3dc933c0b92d98eed84c154dbbeb8bd.tar.gz phosphor-logging-16aed11dc3dc933c0b92d98eed84c154dbbeb8bd.zip |
Entry: store associations
Store a copy of the entry object's associations, in case we need to
recreate them, for example when marking an error as unresolved.
Change-Id: I50001365211325505ed3a72b19a46b1438cc9731
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rw-r--r-- | elog_entry.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/elog_entry.hpp b/elog_entry.hpp index 1c631a9..8208e7f 100644 --- a/elog_entry.hpp +++ b/elog_entry.hpp @@ -60,12 +60,17 @@ class Entry : public EntryIfaces message(std::move(msgErr)); additionalData(std::move(additionalDataErr)); associations(std::move(objects)); + // Store a copy of associations in case we need to recreate + assocs = associations(); resolved(false); // Emit deferred signal. this->emit_object_added(); }; + private: + /** @brief This entry's associations */ + AssociationList assocs = {}; }; } // namespace logging |