Do not use unordered_map for list_ops/list_results
This commit is contained in:
+2
-4
@@ -220,8 +220,7 @@ void osd_t::start_pg_peering(pg_t & pg)
|
||||
{
|
||||
// Discard the result after completion, which, chances are, will be unsuccessful
|
||||
discard_list_subop(it->second);
|
||||
pg.peering_state->list_ops.erase(it);
|
||||
it = pg.peering_state->list_ops.begin();
|
||||
pg.peering_state->list_ops.erase(it++);
|
||||
}
|
||||
else
|
||||
it++;
|
||||
@@ -234,8 +233,7 @@ void osd_t::start_pg_peering(pg_t & pg)
|
||||
{
|
||||
free(it->second.buf);
|
||||
}
|
||||
pg.peering_state->list_results.erase(it);
|
||||
it = pg.peering_state->list_results.begin();
|
||||
pg.peering_state->list_results.erase(it++);
|
||||
}
|
||||
else
|
||||
it++;
|
||||
|
||||
Reference in New Issue
Block a user