ItemUpdater: Store version id as string instead of int
The version id is a string hash, and sometimes when converted to
int, it's a bigger number than int can hold. Store the id as a
string instead as the version numbers are not necessarily in order
since it's a hash, not an increasing number sequence.
Change-Id: Iaaa92627d5a2b4548a653e8d974d1aa8ce80be3c
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/item_updater.hpp b/item_updater.hpp
index a854a62..8350428 100755
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -57,7 +57,7 @@
/** @brief Persistent map of Activation dbus objects and their
* version id */
- std::map<uint32_t, std::unique_ptr<Activation>> activations;
+ std::map<std::string, std::unique_ptr<Activation>> activations;
/** @brief sdbusplus signal match for Software.Version */
sdbusplus::server::match::match versionMatch;