mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
Merge pull request #19336 from amitkumar50/cov-misc-14
osd,os,io: Initializing C_ProxyChunkRead members,queue,request Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
commit
ee14a079ba
@ -61,7 +61,7 @@ public:
|
||||
|
||||
template <typename ImageCtxT = ImageCtx>
|
||||
struct C_SparseReadRequest : public C_SparseReadRequestBase {
|
||||
ObjectReadRequest<ImageCtxT> *request;
|
||||
ObjectReadRequest<ImageCtxT> *request = nullptr;
|
||||
Extents buffer_extents;
|
||||
|
||||
C_SparseReadRequest(AioCompletion *aio_completion, Extents&& buffer_extents,
|
||||
|
@ -227,7 +227,7 @@ struct Task {
|
||||
IORequest io_request;
|
||||
std::mutex lock;
|
||||
std::condition_variable cond;
|
||||
SharedDriverQueueData *queue;
|
||||
SharedDriverQueueData *queue = nullptr;
|
||||
Task(NVMEDevice *dev, IOCommand c, uint64_t off, uint64_t l, int64_t rc = 0)
|
||||
: device(dev), command(c), offset(off), len(l),
|
||||
return_code(rc),
|
||||
|
@ -2756,10 +2756,10 @@ struct C_ProxyChunkRead : public Context {
|
||||
PrimaryLogPG::ProxyReadOpRef prdop;
|
||||
utime_t start;
|
||||
ObjectOperation *obj_op;
|
||||
int op_index;
|
||||
uint64_t req_offset;
|
||||
int op_index = 0;
|
||||
uint64_t req_offset = 0;
|
||||
ObjectContextRef obc;
|
||||
uint64_t req_total_len;
|
||||
uint64_t req_total_len = 0;
|
||||
C_ProxyChunkRead(PrimaryLogPG *p, hobject_t o, epoch_t lpr,
|
||||
const PrimaryLogPG::ProxyReadOpRef& prd)
|
||||
: pg(p), oid(o), last_peering_reset(lpr),
|
||||
|
Loading…
Reference in New Issue
Block a user