diff options
| author | Stefan Boberg <[email protected]> | 2023-12-19 21:58:57 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-12-19 21:58:57 +0100 |
| commit | cda0a6d699b8e13338236f35d22acdad9f771df0 (patch) | |
| tree | 1b1109a0a23b9ceffe48b13d6bdf14cb5e032ebc | |
| parent | Merge remote-tracking branch 'origin/main' into sb/rpc-analysis (diff) | |
| download | zen-cda0a6d699b8e13338236f35d22acdad9f771df0.tar.xz zen-cda0a6d699b8e13338236f35d22acdad9f771df0.zip | |
portability test
| -rw-r--r-- | src/zen/cmds/rpcreplay_cmd.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/zen/cmds/rpcreplay_cmd.cpp b/src/zen/cmds/rpcreplay_cmd.cpp index a4502614e..4a68803ae 100644 --- a/src/zen/cmds/rpcreplay_cmd.cpp +++ b/src/zen/cmds/rpcreplay_cmd.cpp @@ -557,11 +557,11 @@ RpcAnalyzeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv continue; } - static constinit uint32_t kGetCacheValues = HashStringAsLowerDjb2("GetCacheValues"sv); - static constinit uint32_t kGetCacheRecords = HashStringAsLowerDjb2("GetCacheRecords"sv); - static constinit uint32_t kPutCacheValues = HashStringAsLowerDjb2("PutCacheValues"sv); - static constinit uint32_t kPutCacheRecords = HashStringAsLowerDjb2("PutCacheRecords"sv); - static constinit uint32_t kGetCacheChunks = HashStringAsLowerDjb2("GetCacheChunks"sv); + static constexpr uint32_t kGetCacheValues = HashStringAsLowerDjb2("GetCacheValues"sv); + static constexpr uint32_t kGetCacheRecords = HashStringAsLowerDjb2("GetCacheRecords"sv); + static constexpr uint32_t kPutCacheValues = HashStringAsLowerDjb2("PutCacheValues"sv); + static constexpr uint32_t kPutCacheRecords = HashStringAsLowerDjb2("PutCacheRecords"sv); + static constexpr uint32_t kGetCacheChunks = HashStringAsLowerDjb2("GetCacheChunks"sv); std::string_view MethodString = Request["Method"sv].AsString(); const uint32_t MethodHash = HashStringAsLowerDjb2(MethodString); @@ -594,6 +594,20 @@ RpcAnalyzeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv ++BatchSize; + switch (MethodHash) + { + case HashStringAsLowerDjb2("GetCacheValues"sv): + break; + case HashStringAsLowerDjb2("GetCacheRecords"sv): + break; + case HashStringAsLowerDjb2("PutCacheValues"sv): + break; + case HashStringAsLowerDjb2("PutCacheRecords"sv): + break; + case HashStringAsLowerDjb2("GetCacheChunks"sv): + break; + } + if (MethodHash == kGetCacheValues) { /* |