mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
librbd: remove unused private variable
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
ad3825c608
commit
ef4061f0ad
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user