Use atomic_bool for detecting if TopKeys is on.

Signed-off-by: chakaz <chakaz@chakaz>
This commit is contained in:
chakaz 2023-03-17 10:04:10 +02:00 committed by Roman Gershman
parent 5b4af6dbd0
commit 68cb4d006a

View file

@ -432,7 +432,7 @@ void Topkeys(const http::QueryArgs& args, HttpContext* send) {
http::StringResponse resp = http::MakeStringResponse(h2::status::ok);
resp.body() = "<h1>Detected top keys</h1>\n<pre>\n";
bool is_enabled = false;
std::atomic_bool is_enabled = false;
if (shard_set) {
vector<string> rows(shard_set->size());