Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions cpp/src/plasma/store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,14 @@ void PlasmaStore::return_from_get(GetRequest* get_req) {
// tables if it is present there. It should only be present there if the get
// request timed out.
for (ObjectID& object_id : get_req->object_ids) {
auto& get_requests = object_get_requests_[object_id];
// Erase get_req from the vector.
auto it = std::find(get_requests.begin(), get_requests.end(), get_req);
if (it != get_requests.end()) {
get_requests.erase(it);
auto object_request_iter = object_get_requests_.find(object_id);
if (object_request_iter != object_get_requests_.end()) {
auto& get_requests = object_request_iter->second;
// Erase get_req from the vector.
auto it = std::find(get_requests.begin(), get_requests.end(), get_req);
if (it != get_requests.end()) {
get_requests.erase(it);
}
}
}
// Remove the get request.
Expand Down