From 54fdfe6d9aef55e9cb2f4c8d767917605de8575e Mon Sep 17 00:00:00 2001 From: sharathvemula Date: Mon, 6 Feb 2023 23:14:08 -0800 Subject: [PATCH] Fixed minor issue --- waffleClient/proxy/src/waffle_proxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waffleClient/proxy/src/waffle_proxy.cpp b/waffleClient/proxy/src/waffle_proxy.cpp index 7326aed17..f53edaa89 100644 --- a/waffleClient/proxy/src/waffle_proxy.cpp +++ b/waffleClient/proxy/src/waffle_proxy.cpp @@ -198,7 +198,8 @@ void waffle_proxy::execute_batch(const std::vector &operations, std:: cache.insertIntoCache(keyAboutToGoToCache, valueAboutToGoToCache); } else { // Writing fake key values to DB - writeBatchKeys.push_back(storage_keys[i]); + auto fakeWriteKey = extractKey(enc_engine->decrypt(storage_keys[i])); + writeBatchKeys.push_back(enc_engine->encrypt(fakeWriteKey + "#" + to_string(realBst.getFrequency(fakeWriteKey)))); writeBatchValues.push_back(enc_engine->encrypt("fakeValue")); }