mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
librbd: init everything in default AioRequest constructors
CID 717222: Uninitialized pointer field (UNINIT_CTOR) At (16): Non-static class member "m_hide_enoent" is not initialized in this constructor nor in any functions that it calls. CID 717223: Uninitialized scalar field (UNINIT_CTOR) At (4): Non-static class member "m_has_parent" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
parent
3486050ddc
commit
c1ffe08c18
@ -17,7 +17,10 @@
|
||||
|
||||
namespace librbd {
|
||||
|
||||
AioRequest::AioRequest() {}
|
||||
AioRequest::AioRequest() :
|
||||
m_ictx(NULL), m_image_ofs(0), m_block_ofs(0), m_len(0),
|
||||
m_snap_id(CEPH_NOSNAP), m_completion(NULL), m_parent_completion(NULL),
|
||||
m_hide_enoent(false) {}
|
||||
AioRequest::AioRequest(ImageCtx *ictx, const std::string &oid,
|
||||
uint64_t image_ofs, size_t len,
|
||||
librados::snap_t snap_id,
|
||||
@ -95,7 +98,8 @@ namespace librbd {
|
||||
return r;
|
||||
}
|
||||
|
||||
AbstractWrite::AbstractWrite() {}
|
||||
AbstractWrite::AbstractWrite() :
|
||||
m_state(LIBRBD_AIO_WRITE_FINAL), m_has_parent(false) {}
|
||||
AbstractWrite::AbstractWrite(ImageCtx *ictx, const std::string &oid,
|
||||
uint64_t image_ofs, size_t len,
|
||||
librados::snap_t snap_id, Context *completion,
|
||||
|
Loading…
Reference in New Issue
Block a user