]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do not send split_realms for CEPH_SNAP_OP_UPDATE msg 51536/head
authorXiubo Li <xiubli@redhat.com>
Wed, 17 May 2023 13:06:16 +0000 (21:06 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 17 May 2023 13:07:07 +0000 (21:07 +0800)
The clients won't care about the split_realms and the kclient will
treat this as a corrupted snaptrace.

Fixes commit 93e7267757508520dfc22cff1ab20558bd4a44d4 ("mds: send snap
related messages centrally during mds recovery")
Fixes: https://tracker.ceph.com/issues/61217
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/MDCache.cc

index 1624aaab7475f92b599d4f9762fa9591bfca7031..9a6a92260cf4c13d7f1918dd9cc6f79da5548d8c 100644 (file)
@@ -6037,8 +6037,6 @@ void MDCache::finish_snaprealm_reconnect(client_t client, SnapRealm *realm, snap
             << realm->get_newest_seq() << " on " << *realm << dendl;
     auto snap = make_message<MClientSnap>(CEPH_SNAP_OP_UPDATE);
     snap->bl = mds->server->get_snap_trace(client, realm);
-    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"