Skip to content

Commit

Permalink
librbd: cleanup: use a more proper variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
  • Loading branch information
yangdongsheng committed Nov 22, 2016
1 parent 9024e16 commit 9a9b028
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librbd/image/OpenRequest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ void OpenRequest<I>::send_refresh() {
ldout(cct, 10) << this << " " << __func__ << dendl;

using klass = OpenRequest<I>;
RefreshRequest<I> *ctx = RefreshRequest<I>::create(
RefreshRequest<I> *req = RefreshRequest<I>::create(
*m_image_ctx, false,
create_context_callback<klass, &klass::handle_refresh>(this));
ctx->send();
req->send();
}

template <typename I>
Expand Down Expand Up @@ -455,10 +455,10 @@ Context *OpenRequest<I>::send_set_snap(int *result) {
ldout(cct, 10) << this << " " << __func__ << dendl;

using klass = OpenRequest<I>;
SetSnapRequest<I> *ctx = SetSnapRequest<I>::create(
SetSnapRequest<I> *req = SetSnapRequest<I>::create(
*m_image_ctx, m_image_ctx->snap_name,
create_context_callback<klass, &klass::handle_set_snap>(this));
ctx->send();
req->send();
return nullptr;
}

Expand Down

0 comments on commit 9a9b028

Please sign in to comment.