osd: warn if recovery still has missing at end

We shouldn't get to this point.  If we do, recover_primary didn't do what
it needed to.  Dump the remaining missing set and hope we can debug.

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2012-03-05 14:20:48 -08:00
parent 75cbed61e9
commit e1a9e18b38

View File

@ -5430,6 +5430,13 @@ int ReplicatedPG::start_recovery_ops(int max, RecoveryCtx *prctx)
return started;
}
if (missing.num_missing() > 0) {
// this shouldn't happen!
osd->clog.error() << info.pgid << " recovery ending with " << missing.num_missing()
<< ": " << missing.missing << "\n";
return started;
}
handle_recovery_complete(prctx);
return 0;