From: Ramana Raja Date: Tue, 4 Mar 2025 23:01:18 +0000 (-0500) Subject: librbd/mirror: set valid group_spec in MirrorSnapshotNamespace X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c4bec8028f7b903cef87883c35702fc824f2d365;p=ceph.git librbd/mirror: set valid group_spec in MirrorSnapshotNamespace ... for a member image snap of a non-primary mirror group. Previously, group_spec's group_id was always an empty string, and its pool_id was set to be the image's metadata pool ID. Signed-off-by: Ramana Raja --- diff --git a/src/librbd/mirror/snapshot/CreateNonPrimaryRequest.cc b/src/librbd/mirror/snapshot/CreateNonPrimaryRequest.cc index 9fcb80ef7dc87..e774f6f82bc48 100644 --- a/src/librbd/mirror/snapshot/CreateNonPrimaryRequest.cc +++ b/src/librbd/mirror/snapshot/CreateNonPrimaryRequest.cc @@ -200,7 +200,7 @@ void CreateNonPrimaryRequest::create_snapshot() { ns.mirror_peer_uuids = m_mirror_peer_uuids; } if (!m_group_snap_id.empty()) { - ns.group_spec = {m_group_id, m_image_ctx->md_ctx.get_id()}; + ns.group_spec = m_image_ctx->group_spec; ns.group_snap_id = m_group_snap_id; } ns.snap_seqs = m_snap_seqs;