From: Yan, Zheng Date: Wed, 13 Feb 2019 09:19:00 +0000 (+0800) Subject: mds: fix MDCache::finish_snaprealm_reconnect() X-Git-Tag: v14.1.0~107^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b4e7a66235450b9c30ebcaba97f03d371fac2c02;p=ceph.git mds: fix MDCache::finish_snaprealm_reconnect() It creates MClientSnap message, but does not send it to client Signed-off-by: "Yan, Zheng" --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 634c4609625d..f0d1262790cf 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -5993,6 +5993,7 @@ void MDCache::finish_snaprealm_reconnect(client_t client, SnapRealm *realm, snap snap->bl = realm->get_snap_trace(); for (const auto& child : realm->open_children) snap->split_realms.push_back(child->inode->ino()); + updates.emplace(std::piecewise_construct, std::forward_as_tuple(client), std::forward_as_tuple(snap)); } else { dout(10) << "finish_snaprealm_reconnect client." << client << " up to date" << " on " << *realm << dendl;