Skip to content

Commit

Permalink
librbd/operation/SnapshotRemoveRequest: fix uninitialized member
Browse files Browse the repository at this point in the history
Silence coverity 1413790

Signed-off-by: Li Wang <[email protected]>
  • Loading branch information
dragonylffly committed Oct 7, 2017
1 parent 4cd9bb2 commit 4ea9ac9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librbd/operation/SnapshotRemoveRequest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SnapshotRemoveRequest<I>::SnapshotRemoveRequest(I &image_ctx,
const std::string &snap_name,
uint64_t snap_id)
: Request<I>(image_ctx, on_finish), m_snap_namespace(snap_namespace),
m_snap_name(snap_name), m_snap_id(snap_id) {
m_snap_name(snap_name), m_snap_id(snap_id), m_state(STATE_REMOVE_OBJECT_MAP) {
}

template <typename I>
Expand Down Expand Up @@ -114,7 +114,6 @@ void SnapshotRemoveRequest<I>::send_remove_object_map() {

if (image_ctx.object_map != nullptr) {
ldout(cct, 5) << this << " " << __func__ << dendl;
m_state = STATE_REMOVE_OBJECT_MAP;

image_ctx.object_map->snapshot_remove(
m_snap_id, this->create_callback_context());
Expand Down

0 comments on commit 4ea9ac9

Please sign in to comment.