Smityz commented on a change in pull request #640:
URL: https://github.com/apache/incubator-pegasus/pull/640#discussion_r519543723
##########
File path: src/server/hotkey_collector.cpp
##########
@@ -332,5 +339,12 @@ void
hotkey_fine_data_collector::analyse_data(detect_hotkey_result &result)
}
}
+void hotkey_fine_data_collector::clear()
+{
+ std::pair<dsn::blob, uint64_t> key_weight_pair;
Review comment:
```
concurrentqueue.h:890
// Swaps this queue's state with the other's. Not thread-safe.
// Swapping two queues does not invalidate their tokens, however
// the tokens that were created for one queue must be used with
// only the swapped queue (i.e. the tokens are tied to the
// queue's movable state, not the object itself).
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]