From: Yan, Zheng Date: Sat, 3 Jun 2017 06:35:40 +0000 (+0800) Subject: mds: fix stray dentry replication in cache rejoin ack X-Git-Tag: ses5-milestone7~3^2~7^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d3bb981dc81348f6d9f6b984b4ea23afc4506fa;p=ceph.git mds: fix stray dentry replication in cache rejoin ack To replicate s stray dentry, we need to replicate all its ancestors. Signed-off-by: "Yan, Zheng" --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 6c9f47a72903..3694e1b2b2d9 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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; }