]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: cleanup: use a more proper variable name 12078/head
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Sat, 19 Nov 2016 13:05:46 +0000 (08:05 -0500)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Tue, 22 Nov 2016 00:41:42 +0000 (19:41 -0500)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/librbd/image/OpenRequest.cc

index e6c7655a6ef0d9cc09332b6a995791f296068031..026a79525964c4b5673758573892a7801f6d8dc1 100644 (file)
@@ -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>
@@ -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;
 }