mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
Use atomic_bool for detecting if TopKeys is on.
Signed-off-by: chakaz <chakaz@chakaz>
This commit is contained in:
parent
5b4af6dbd0
commit
68cb4d006a
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue