]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: drop unused variable from flatten state machine 20176/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 6 Feb 2018 13:20:42 +0000 (08:20 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 6 Feb 2018 13:20:42 +0000 (08:20 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/operation/FlattenRequest.cc
src/librbd/operation/FlattenRequest.h

index 4df4094ab9c071d0497f7bfb39bcd8ce64685b97..defee1da67fe5c70cc3f8a1ca2c29df05db134f5 100644 (file)
@@ -6,6 +6,7 @@
 #include "librbd/ExclusiveLock.h"
 #include "librbd/ImageCtx.h"
 #include "librbd/image/DetachChildRequest.h"
+#include "librbd/Types.h"
 #include "librbd/io/ObjectRequest.h"
 #include "common/dout.h"
 #include "common/errno.h"
@@ -162,7 +163,6 @@ bool FlattenRequest<I>::send_update_header() {
       ldout(cct, 5) << "image already flattened" << dendl;
       return true;
     }
-    m_parent_spec = image_ctx.parent_md.spec;
   }
 
   // remove parent from this (base) image
index 54638700e5332b26cb568cdd5eea7efab2f4b784..59494277d959c218457c904086178e00bf6475d1 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "librbd/operation/Request.h"
 #include "common/snap_types.h"
-#include "librbd/Types.h"
 
 namespace librbd {
 
@@ -72,8 +71,6 @@ private:
   ProgressContext &m_prog_ctx;
   State m_state = STATE_FLATTEN_OBJECTS;
 
-  ParentSpec m_parent_spec;
-
   bool send_detach_child();
   bool send_update_header();
 };