Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
bug fix in erase_map_elem_by_id
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong committed Jun 24, 2020
1 parent 36cf83f commit 37ba118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dist/replication/meta_server/meta_bulk_load_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,8 @@ inline void erase_map_elem_by_id(int32_t app_id, std::unordered_map<gpid, T> &my
for (auto iter = mymap.begin(); iter != mymap.end();) {
if (iter->first.get_app_id() == app_id) {
mymap.erase(iter++);
} else {
iter++;
}
}
}
Expand Down

0 comments on commit 37ba118

Please sign in to comment.