Skip to content

Commit

Permalink
[fix][coordinator] Fix compile error in C++ 17.
Browse files Browse the repository at this point in the history
Signed-off-by: Ketor <[email protected]>
  • Loading branch information
ketor committed Mar 14, 2024
1 parent 5ed32c7 commit 6242cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coordinator/coordinator_control_coor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void CoordinatorControl::GetStoreRegionMetrics(int64_t store_id, std::vector<pb:
if (!store_ids_to_get_own.empty()) {
BAIDU_SCOPED_LOCK(store_metrics_map_mutex_);
for (auto& metrics_to_update : store_metrics) {
if (store_ids_to_get_own.contains(metrics_to_update.id())) {
if (store_ids_to_get_own.count(metrics_to_update.id()) > 0) {
if (store_metrics_map_.find(metrics_to_update.id()) != store_metrics_map_.end()) {
(*metrics_to_update.mutable_store_own_metrics()) =
store_metrics_map_.at(metrics_to_update.id()).store_own_metrics;
Expand Down

0 comments on commit 6242cdf

Please sign in to comment.