]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: fix stray dentry replication in cache rejoin ack
authorYan, Zheng <zyan@redhat.com>
Sat, 3 Jun 2017 06:35:40 +0000 (14:35 +0800)
committerJohn Spray <john.spray@redhat.com>
Fri, 23 Jun 2017 16:07:31 +0000 (17:07 +0100)
To replicate s stray dentry, we need to replicate all its ancestors.

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

index 6c9f47a7290343266f4fbf77bc52e3fdf36250be..3694e1b2b2d9296fdf5d8bd23f8e7f83472f2664 100644 (file)
@@ -5929,6 +5929,7 @@ void MDCache::rejoin_send_acks()
        in = dir->get_inode();
        if (in->is_replica(p->first))
          break;
+       in->add_replica(p->first);
        if (in->is_base())
          break;
       }