mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
mds: note damaged dentry with first gt last
Only when loaded in cache. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
40f483ed45
commit
956eff7e02
@ -1812,6 +1812,11 @@ CDentry *CDir::_load_dentry(
|
||||
<< " [" << first << "," << last << "]"
|
||||
<< dendl;
|
||||
|
||||
if (first > last) {
|
||||
go_bad_dentry(last, dname);
|
||||
/* try to continue */
|
||||
}
|
||||
|
||||
bool stale = false;
|
||||
if (snaps && last != CEPH_NOSNAP) {
|
||||
set<snapid_t>::const_iterator p = snaps->lower_bound(first);
|
||||
|
Loading…
Reference in New Issue
Block a user