From b75d884e547e72580fb639ae78d635b7f2d65105 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 14 Aug 2024 18:36:57 +0200 Subject: [PATCH] librbd: RefreshParentRequest::m_parent_snap_id is unused Signed-off-by: Ilya Dryomov (cherry picked from commit df2189acc5dd10e2741a8bdcb891b4f68bdac6b1) --- src/librbd/image/RefreshParentRequest.cc | 2 +- src/librbd/image/RefreshParentRequest.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librbd/image/RefreshParentRequest.cc b/src/librbd/image/RefreshParentRequest.cc index 24b6d990885..bfaef2dcc2f 100644 --- a/src/librbd/image/RefreshParentRequest.cc +++ b/src/librbd/image/RefreshParentRequest.cc @@ -28,7 +28,7 @@ RefreshParentRequest::RefreshParentRequest( const MigrationInfo &migration_info, Context *on_finish) : m_child_image_ctx(child_image_ctx), m_parent_md(parent_md), m_migration_info(migration_info), m_on_finish(on_finish), - m_parent_snap_id(CEPH_NOSNAP), m_error_result(0) { + m_error_result(0) { } template diff --git a/src/librbd/image/RefreshParentRequest.h b/src/librbd/image/RefreshParentRequest.h index 40bb3e08634..100fa4fd112 100644 --- a/src/librbd/image/RefreshParentRequest.h +++ b/src/librbd/image/RefreshParentRequest.h @@ -68,7 +68,6 @@ private: Context *m_on_finish; ImageCtxT *m_parent_image_ctx = nullptr; - uint64_t m_parent_snap_id; int m_error_result; -- 2.39.5