mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
OSD: make pg upgrade logging quiet
Fixes: #4701 Signed-off-by: Samuel Just <sam.just@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
parent
ac720a091d
commit
a3298713bb
@ -1606,6 +1606,7 @@ void OSD::load_pgs()
|
||||
dout(10) << "load_pgs ignoring unrecognized " << *it << dendl;
|
||||
}
|
||||
|
||||
bool has_upgraded = false;
|
||||
for (map<pg_t, interval_set<snapid_t> >::iterator i = pgs.begin();
|
||||
i != pgs.end();
|
||||
++i) {
|
||||
@ -1639,8 +1640,12 @@ void OSD::load_pgs()
|
||||
pg->read_state(store, bl);
|
||||
|
||||
if (pg->must_upgrade()) {
|
||||
derr << "PG " << pg->info.pgid
|
||||
<< " must upgrade..." << dendl;
|
||||
if (!has_upgraded) {
|
||||
derr << "PGs are upgrading" << dendl;
|
||||
has_upgraded = true;
|
||||
}
|
||||
dout(10) << "PG " << pg->info.pgid
|
||||
<< " must upgrade..." << dendl;
|
||||
pg->upgrade(store, i->second);
|
||||
} else {
|
||||
assert(i->second.empty());
|
||||
|
Loading…
Reference in New Issue
Block a user