summaryrefslogtreecommitdiffstats
path: root/src/librbd
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2024-08-14 18:36:57 +0200
committerIlya Dryomov <idryomov@gmail.com>2024-08-18 21:34:09 +0200
commitdf2189acc5dd10e2741a8bdcb891b4f68bdac6b1 (patch)
treee168f2edbe82faed201f148a31d1d3eed2a22eb7 /src/librbd
parentlibrbd: assert on parent in ImageCtx destructor (diff)
downloadceph-df2189acc5dd10e2741a8bdcb891b4f68bdac6b1.tar.xz
ceph-df2189acc5dd10e2741a8bdcb891b4f68bdac6b1.zip
librbd: RefreshParentRequest::m_parent_snap_id is unused
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'src/librbd')
-rw-r--r--src/librbd/image/RefreshParentRequest.cc2
-rw-r--r--src/librbd/image/RefreshParentRequest.h1
2 files changed, 1 insertions, 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<I>::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 <typename I>
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;