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:
Samuel Just 2013-04-10 14:13:12 -07:00
parent ac720a091d
commit a3298713bb

View File

@ -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());