Static cast std::atomic<size_t> to uint64_t to serialize.

There are no viable constructors for the atomic in rapidJSON.
This commit is contained in:
Manas Alekar 2023-05-03 18:11:17 -07:00
parent c799bcf6bf
commit 6d6f3bc58b

View File

@ -132,7 +132,7 @@ void Stats::writeJSON(DB::WriteBuffer & out, size_t concurrency, int64_t start_t
{
Value specific_results(kObjectType);
specific_results.AddMember("total_requests", Value(collector.requests), allocator);
specific_results.AddMember("total_requests", Value(static_cast<uint64_t>(collector.requests)), allocator);
auto [rps, bps] = collector.getThroughput(concurrency);
specific_results.AddMember("requests_per_second", Value(rps), allocator);