librbd: remove unused private variable

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2013-12-07 09:58:43 -08:00
parent ad3825c608
commit ef4061f0ad
2 changed files with 2 additions and 4 deletions

View 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;
};
}

View 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);