mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
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:
parent
c799bcf6bf
commit
6d6f3bc58b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user