From addc370c37fd4cf1f6c1ad3d016dbacb13f8cef0 Mon Sep 17 00:00:00 2001 From: codesigner Date: Mon, 30 Jan 2023 16:56:18 +0800 Subject: [PATCH] remove unnecessary check when print error log (#5284) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> --- src/common/memory/MemoryUtils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/memory/MemoryUtils.cpp b/src/common/memory/MemoryUtils.cpp index 52d832af937..b8fbcea5dee 100644 --- a/src/common/memory/MemoryUtils.cpp +++ b/src/common/memory/MemoryUtils.cpp @@ -192,9 +192,7 @@ void MemoryUtils::handleMemoryTracker(int64_t total, int64_t available) { LOG(INFO) << "MemoryTracker disabled"; } } else { - if (kCurrentTotal_ != limitRatio) { - LOG(ERROR) << "Invalid memory_tracker_limit_ratio: " << limitRatio; - } + LOG(ERROR) << "Invalid memory_tracker_limit_ratio: " << limitRatio; } kCurrentTotal_ = total; kCurrentLimitRatio_ = limitRatio;