It's too strict and unnecessary for asok command "scrub_path" to
assert when it checked a frozen dir's rstat, just return false instead.
Fixes: https://tracker.ceph.com/issues/42251
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
dout(25) << "check_rstats on " << this << dendl;
if (!is_complete() || !is_auth() || is_frozen()) {
- ceph_assert(!scrub);
- dout(10) << "check_rstats bailing out -- incomplete or non-auth or frozen dir!" << dendl;
- return true;
+ dout(3) << "check_rstats " << (scrub ? "(scrub) " : "")
+ << "bailing out -- incomplete or non-auth or frozen dir on "
+ << *this << dendl;
+ return !scrub;
}
frag_info_t frag_info;