Setting backtrace.passed as true in case of mdsdir,
as we are not having any backtrace.It would prevent the
entry in the damage table and hence prevent the HEALTH_ERR.
Fixes: https://tracker.ceph.com/issues/58030
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit
ab2b23ba697ab944516d92860652c839c427cb50)
results->backtrace.error_str << "failed to read off disk; see retval";
// we probably have a new unwritten file!
// so skip the backtrace scrub for this entry and say that all's well
+ if (in->is_mdsdir()){
+ dout(20) << "forcing backtrace as passed since mdsdir actually doesn't have backtrace" << dendl;
+ results->backtrace.passed = true;
+ }
if (in->is_dirty_parent()) {
dout(20) << "forcing backtrace as passed since inode is dirty parent" << dendl;
results->backtrace.passed = true;