mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
Merge pull request #27509 from Aran85/fix-pg-dout
osd/PG: the warning seems more serious than what it wanna transmit Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
ebc6db7fa9
11
src/osd/PG.h
11
src/osd/PG.h
@ -826,10 +826,13 @@ protected:
|
||||
if (j == needs_recovery_map.end()) {
|
||||
needs_recovery_map.insert(*i);
|
||||
} else {
|
||||
lgeneric_dout(pg->cct, 0) << this << " " << pg->info.pgid << " unexpected need for "
|
||||
<< i->first << " have " << j->second
|
||||
<< " tried to add " << i->second << dendl;
|
||||
ceph_assert(i->second.need == j->second.need);
|
||||
if (i->second.need != j->second.need) {
|
||||
lgeneric_dout(pg->cct, 0) << this << " " << pg->info.pgid << " unexpected need for "
|
||||
<< i->first << " have " << j->second
|
||||
<< " tried to add " << i->second << dendl;
|
||||
ceph_assert(0 == "unexpected need for missing item");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user