From e59fda1712542ec622fbf0ca3d454c2a59c1e95a Mon Sep 17 00:00:00 2001 From: Smilencer <527646889@qq.com> Date: Thu, 5 Nov 2020 15:16:50 +0800 Subject: [PATCH] Update src/server/hotkey_collector.cpp Co-authored-by: Wu Tao --- src/server/hotkey_collector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/hotkey_collector.cpp b/src/server/hotkey_collector.cpp index bd76109ba3..69855770ab 100644 --- a/src/server/hotkey_collector.cpp +++ b/src/server/hotkey_collector.cpp @@ -269,6 +269,7 @@ void hotkey_fine_data_collector::capture_data(const dsn::blob &hash_key, uint64_ if (get_bucket_id(hash_key) != _target_bucket_index) { return; } + // abandon the key if enqueue failed (possibly because not enough room to enqueue) _capture_key_queue.try_enqueue(std::make_pair(hash_key, weight)); }