]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove unused private variable 918/head
authorNoah Watkins <noahwatkins@gmail.com>
Sat, 7 Dec 2013 17:58:43 +0000 (09:58 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Sun, 8 Dec 2013 02:07:03 +0000 (18:07 -0800)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/librbd/AioCompletion.h
src/librbd/internal.cc

index 899586d51a7a985203f45b549ded6cf25cef1664..c67a44fa50eef5940cb003970097d34bc022b782 100644 (file)
@@ -196,12 +196,10 @@ namespace librbd {
 
   class C_CacheRead : public Context {
   public:
-    C_CacheRead(Context *completion, AioRead *req)
-      : m_completion(completion), m_req(req) {}
+    explicit C_CacheRead(AioRead *req) : m_req(req) {}
     virtual ~C_CacheRead() {}
     virtual void finish(int r);
   private:
-    Context *m_completion;
     AioRead *m_req;
   };
 }
index f7899053a375404c22461dc4066660ccd9d7e9be..84e5477dec82ea3f9e9331cdce47aae885c0ee3f 100644 (file)
@@ -3080,7 +3080,7 @@ reprotect_and_return_err:
        c->add_request();
 
        if (ictx->object_cacher) {
-         C_CacheRead *cache_comp = new C_CacheRead(req_comp, req);
+         C_CacheRead *cache_comp = new C_CacheRead(req);
          ictx->aio_read_from_cache(q->oid, &req->data(),
                                    q->length, q->offset,
                                    cache_comp);