Skip to content

Commit

Permalink
remove unnecessary check when print error log (#5284)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
  • Loading branch information
codesigner and Sophie-Xie authored Jan 30, 2023
1 parent 0e95568 commit addc370
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/memory/MemoryUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit addc370

Please sign in to comment.