diff options
| author | Dan Engelbrecht <[email protected]> | 2022-11-07 10:18:44 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-07 01:18:44 -0800 |
| commit | bb07e58a9c59705b54164b06bcbe40c052880d90 (patch) | |
| tree | 2b691d876b232f5354459a9c4a5cb44c21d541a8 /zenserver/cache/structuredcache.h | |
| parent | 0.1.8 (diff) | |
| download | zen-bb07e58a9c59705b54164b06bcbe40c052880d90.tar.xz zen-bb07e58a9c59705b54164b06bcbe40c052880d90.zip | |
Support file reference in package message (#184)
* Fix packed message parsing for absolute path
* Always enable are sharing when opening files as IoBuffers.
* Allow control over sending partial files as localfile ref
* Check "AcceptFlags" field in RPC message for allowing localfile ref in reply
* make oplog entry add operations ZEN_DEBUG level logs
* changelog
Diffstat (limited to 'zenserver/cache/structuredcache.h')
| -rw-r--r-- | zenserver/cache/structuredcache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcache.h b/zenserver/cache/structuredcache.h index bda838dbc..a74d6b7a6 100644 --- a/zenserver/cache/structuredcache.h +++ b/zenserver/cache/structuredcache.h @@ -118,6 +118,7 @@ private: /** HandleRpcGetCacheChunks Helper: Parse the Body object into RecordValue Requests and Value Requests. */ bool ParseGetCacheChunksRequest(uint32_t& AcceptMagic, + uint16_t& AcceptFlags, std::string& Namespace, std::vector<CacheKeyRequest>& RecordKeys, std::vector<cache::detail::RecordBody>& Records, @@ -143,6 +144,7 @@ private: std::vector<cache::detail::ChunkRequest>& Requests); /** HandleRpcGetCacheChunks Helper: Send response message containing all chunk results. */ void WriteGetCacheChunksResponse(uint32_t AcceptMagic, + uint16_t AcceptFlags, std::string_view Namespace, std::vector<cache::detail::ChunkRequest>& Requests, zen::HttpServerRequest& HttpRequest); |