mirror of
https://github.com/ceph/ceph
synced 2025-01-01 00:22:25 +00:00
osd: debug pending_creates_from_osd cleanup, don't use cbegin
Got a segv on the erase line :/ Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
a7757085c0
commit
925163c7eb
@ -8051,9 +8051,11 @@ void OSD::consume_map()
|
||||
{
|
||||
// FIXME (as part of seastar rewrite): move to OSDShard
|
||||
[[gnu::unused]] auto&& pending_create_locker = guardedly_lock(pending_creates_lock);
|
||||
for (auto pg = pending_creates_from_osd.cbegin();
|
||||
pg != pending_creates_from_osd.cend();) {
|
||||
for (auto pg = pending_creates_from_osd.begin();
|
||||
pg != pending_creates_from_osd.end();) {
|
||||
if (osdmap->get_pg_acting_rank(pg->first, whoami) < 0) {
|
||||
dout(10) << __func__ << " pg " << pg->first << " doesn't map here, "
|
||||
<< "discarding pending_create_from_osd" << dendl;
|
||||
pg = pending_creates_from_osd.erase(pg);
|
||||
} else {
|
||||
++pg;
|
||||
|
Loading…
Reference in New Issue
Block a user