From bfb28f865b07a2051ea18dd8a352b1508b2ba0cf Mon Sep 17 00:00:00 2001 From: tangyanzhao Date: Tue, 20 Oct 2020 22:10:48 +0800 Subject: [PATCH] update --- src/server/hotkey_collector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/hotkey_collector.cpp b/src/server/hotkey_collector.cpp index 34827538e4..5811bf00f2 100644 --- a/src/server/hotkey_collector.cpp +++ b/src/server/hotkey_collector.cpp @@ -136,7 +136,7 @@ void hotkey_collector::terminate_by_timeout() { if (_collector_start_time == 0) return; - if (dsn_now_s() - _collector_start_time >= FLAGS_hotkey_collector_max_work_time) { + if (dsn_now_s() >= _collector_start_time + FLAGS_hotkey_collector_max_work_time) { ddebug_replica("hotkey collector work time is exhausted but no hotkey has been found"); terminate_colletor(); return;