OSD: allow recovery in peered

Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
Samuel Just 2014-11-26 14:00:34 -08:00
parent 818b91b7e2
commit b31221afa0

View File

@ -7835,7 +7835,7 @@ void OSD::do_recovery(PG *pg, ThreadPool::TPHandle &handle)
return;
} else {
pg->lock_suspend_timeout(handle);
if (pg->deleting || !(pg->is_active() && pg->is_primary())) {
if (pg->deleting || !(pg->is_peered() && pg->is_primary())) {
pg->unlock();
goto out;
}