diff options
| author | zousar <[email protected]> | 2025-09-23 09:26:11 -0600 |
|---|---|---|
| committer | zousar <[email protected]> | 2025-09-23 09:26:11 -0600 |
| commit | c7eebb0c8fc5d046d630b462bbfdab1f46bb2d42 (patch) | |
| tree | e833c531de232503db4e006afeadb6563d71dcc9 /src/zenstore/cache/structuredcachestore.cpp | |
| parent | Merge branch 'main' into zs/put-overwrite-policy-response (diff) | |
| download | zen-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.cpp | 4 |
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()}; } |