]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove superfluous error in StrayManager::advance_delayed()
authorYan, Zheng <zyan@redhat.com>
Tue, 19 Mar 2019 12:45:42 +0000 (20:45 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 8 Oct 2019 04:28:30 +0000 (06:28 +0200)
Fixes: http://tracker.ceph.com/issues/38679
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit f51857772f4320020211f3628ba9f5d5bfb4f9e7)

src/mds/StrayManager.cc

index d997f51dfa51daf7980005be6cc243c9bcc95671..ae31bf495d514358e6cc1880ad7a475fc5d3483e 100644 (file)
@@ -357,17 +357,7 @@ void StrayManager::advance_delayed()
       continue;
     }
 
-    const bool purging = eval_stray(dn);
-    if (!purging) {
-      derr << "Dentry " << *dn << " was purgeable but no longer is!" << dendl;
-      /*
-       * This can happen if a stray is purgeable, but has gained an extra
-       * reference by virtue of having its backtrace updated.
-       * FIXME perhaps we could simplify this further by
-       * avoiding writing the backtrace of purge-ready strays, so
-       * that this code could be more rigid?
-       */
-    }
+    eval_stray(dn);
   }
   logger->set(l_mdc_num_strays_delayed, num_strays_delayed);
 }