]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/CDir.cc
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / mds / CDir.cc
index d3461fba2e0707e84bf580c356a6a74432dd6e06..ead659fcca1c95df8e72082ff1e3002c9ebd9147 100644 (file)
@@ -229,9 +229,10 @@ bool CDir::check_rstats(bool scrub)
 
   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;