]> git-server-git.apps.pok.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)
committerYan, Zheng <zyan@redhat.com>
Wed, 13 Feb 2019 09:19:00 +0000 (17:19 +0800)
It creates MClientSnap message, but does not send it to client

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

index 634c4609625d895e8dfb532945bed4c832778cd5..f0d1262790cf32bb03e7099d10c5bcbfbabfd16c 100644 (file)
@@ -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;