librbd: drop unused variable from flatten state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2018-02-06 08:20:42 -05:00
parent 88171d09f3
commit 7a24713a72
2 changed files with 1 additions and 4 deletions

View 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

View 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();
};