]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: use md_ctx for self-managed snapshot management
authorJason Dillaman <dillaman@redhat.com>
Wed, 25 Nov 2015 19:06:03 +0000 (14:06 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2015 16:11:11 +0000 (11:11 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/operation/SnapshotCreateRequest.cc
src/librbd/operation/SnapshotRemoveRequest.cc

index 5caad146803263be962ad0b5a7fe593961025e06..545a7ba9953d8d1aeefa35261e3694a8a71c4076 100644 (file)
@@ -243,7 +243,7 @@ bool SnapshotCreateRequest<I>::send_release_snap_id() {
     m_state = STATE_RELEASE_SNAP_ID;
 
     // TODO add async version of selfmanaged_snap_remove
-    int r = image_ctx.data_ctx.selfmanaged_snap_remove(m_snap_id);
+    int r = image_ctx.md_ctx.selfmanaged_snap_remove(m_snap_id);
     m_snap_id = CEPH_NOSNAP;
 
     this->async_complete(r);
index 5d8035c0e87ceaec8e0a18b6b429cb4e2e7313a0..a10ffe23fd6d3761427e811919a80b391efb0d62 100644 (file)
@@ -189,7 +189,7 @@ void SnapshotRemoveRequest<I>::send_release_snap_id() {
   m_state = STATE_RELEASE_SNAP_ID;
 
   // TODO add async version of selfmanaged_snap_remove
-  image_ctx.data_ctx.selfmanaged_snap_remove(m_snap_id);
+  image_ctx.md_ctx.selfmanaged_snap_remove(m_snap_id);
   this->async_complete(0);
 }