Skip to content

Commit

Permalink
Merge pull request ceph#7043 from dillaman/wip-14170-jewel
Browse files Browse the repository at this point in the history
librbd: do not ignore self-managed snapshot release result

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
  • Loading branch information
jdurgin committed Dec 23, 2015
2 parents 1e1df75 + b4dbaa6 commit a297608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librbd/operation/SnapshotRemoveRequest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ void SnapshotRemoveRequest<I>::send_release_snap_id() {
m_state = STATE_RELEASE_SNAP_ID;

// TODO add async version of selfmanaged_snap_remove
image_ctx.md_ctx.selfmanaged_snap_remove(m_snap_id);
this->async_complete(0);
int r = image_ctx.md_ctx.selfmanaged_snap_remove(m_snap_id);
this->async_complete(r);
}

template <typename I>
Expand Down

0 comments on commit a297608

Please sign in to comment.