From 9d3bb981dc81348f6d9f6b984b4ea23afc4506fa Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Sat, 3 Jun 2017 14:35:40 +0800 Subject: [PATCH] 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" --- src/mds/MDCache.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 6c9f47a7290..3694e1b2b2d 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; } -- 2.39.5