]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix MDCache::finish_snaprealm_reconnect()
authorYan, Zheng <zyan@redhat.com>
Wed, 13 Feb 2019 09:19:00 +0000 (17:19 +0800)
committerPrashant D <pdhange@redhat.com>
Sun, 17 Feb 2019 23:08:59 +0000 (18:08 -0500)
It creates MClientSnap message, but does not send it to client

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit b4e7a66235450b9c30ebcaba97f03d371fac2c02)

src/mds/MDCache.cc

index 97c3c9933813f0c23aba4516bfdb4ce1a20371d1..19b41b9b334616f4e58005f3422770393bffbc4a 100644 (file)
@@ -6094,6 +6094,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;