From f6906b4f3689c0e256ad901c50cc428968ea0632 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Mon, 16 Jan 2023 06:41:58 -0800 Subject: [PATCH] Add bits to send oid version information to cache build service --- src/OICache.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OICache.cpp b/src/OICache.cpp index 0fffa3b..888fe15 100644 --- a/src/OICache.cpp +++ b/src/OICache.cpp @@ -26,6 +26,7 @@ #include "Serialize.h" #ifndef OSS_ENABLE +#include "cea/object-introspection/internal/GobsService.h" #include "cea/object-introspection/internal/ManifoldCache.h" #endif @@ -241,6 +242,10 @@ std::string OICache::generateRemoteHash(const irequest &req) { std::string remote_cache_id = *buildID + "/" + req.func + "/" + req.arg + "/" + generatorConfig.toString(); +#ifndef OSS_ENABLE + auto version_pair = ObjectIntrospection::GobsService::getOidRpmVersions(); + remote_cache_id += "/" + version_pair.first + "/" + version_pair.second; +#endif LOG(INFO) << "generating remote hash from: " << remote_cache_id; return std::to_string(std::hash{}(remote_cache_id));