mds: avoid assert after suicide()

Fixes: #5079
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-05-16 09:42:11 -07:00
parent 2ba167be0e
commit 64871e0931

View File

@ -5653,9 +5653,11 @@ void MDCache::_recovered(CInode *in, int r, uint64_t size, utime_t mtime)
if (r != 0) {
dout(0) << "recovery error! " << r << dendl;
if (r == -EBLACKLISTED)
if (r == -EBLACKLISTED) {
mds->suicide();
assert(0);
return;
}
assert(0 == "unexpected error from osd during recovery");
}
file_recovering.erase(in);