mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
mds: avoid assert after suicide()
Fixes: #5079 Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
2ba167be0e
commit
64871e0931
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user