]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: check projected linkage before migrating stray dentry
authorYan, Zheng <zyan@redhat.com>
Mon, 2 Apr 2018 03:19:25 +0000 (11:19 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 2 Apr 2018 03:21:25 +0000 (11:21 +0800)
NULL projected linkage triggers assertion in StrayManager::migrate_stray()

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc

index d226d2aee0cc8c6964d73eeb0f896657e298ff47..b24c00040f8c56f45630906d29a137c4bad5355e 100644 (file)
@@ -7800,7 +7800,7 @@ bool MDCache::shutdown_export_strays()
     
     for (auto &p : dir->items) {
       CDentry *dn = p.second;
-      CDentry::linkage_t *dnl = dn->get_linkage();
+      CDentry::linkage_t *dnl = dn->get_projected_linkage();
       if (dnl->is_null())
        continue;
       done = false;