aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorzousar <[email protected]>2025-09-23 09:26:11 -0600
committerzousar <[email protected]>2025-09-23 09:26:11 -0600
commitc7eebb0c8fc5d046d630b462bbfdab1f46bb2d42 (patch)
treee833c531de232503db4e006afeadb6563d71dcc9 /src/zenstore/cache/structuredcachestore.cpp
parentMerge branch 'main' into zs/put-overwrite-policy-response (diff)
downloadzen-c7eebb0c8fc5d046d630b462bbfdab1f46bb2d42.tar.xz
zen-c7eebb0c8fc5d046d630b462bbfdab1f46bb2d42.zip
Adjust the responses from PUT commands
- Ensure that text responses are in a field named "Message" - Change the record response to be named "Record" instead of "Object"
Diffstat (limited to 'src/zenstore/cache/structuredcachestore.cpp')
-rw-r--r--src/zenstore/cache/structuredcachestore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/cache/structuredcachestore.cpp b/src/zenstore/cache/structuredcachestore.cpp
index 51c80dbc7..b58f70ea7 100644
--- a/src/zenstore/cache/structuredcachestore.cpp
+++ b/src/zenstore/cache/structuredcachestore.cpp
@@ -731,7 +731,7 @@ ZenCacheStore::Put(const CacheRequestContext& Context,
{
m_RejectedWriteCount++;
CbObjectWriter DetailWriter;
- DetailWriter.AddString("Bad bucket name");
+ DetailWriter.AddString("Message", "Bad bucket name");
return PutResult{zen::PutStatus::Invalid, DetailWriter.Save()};
}
@@ -781,7 +781,7 @@ ZenCacheStore::Put(const CacheRequestContext& Context,
HashKey.ToHexString());
CbObjectWriter DetailWriter;
- DetailWriter.AddString(fmt::format("Unknown namespace '{}'", Namespace));
+ DetailWriter.AddString("Message", fmt::format("Unknown namespace '{}'", Namespace));
return PutResult{zen::PutStatus::Fail, DetailWriter.Save()};
}