From c4bec8028f7b903cef87883c35702fc824f2d365 Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Tue, 4 Mar 2025 18:01:18 -0500 Subject: [PATCH] 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 --- src/librbd/mirror/snapshot/CreateNonPrimaryRequest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5