Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librbd: initialize member variables #16867

Merged
merged 1 commit into from
Aug 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librbd/WatchNotifyTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ struct SnapRenamePayload : public SnapPayloadBase {
const std::string &dst_name)
: SnapPayloadBase(cls::rbd::UserSnapshotNamespace(), dst_name), snap_id(src_snap_id) {}

uint64_t snap_id;
uint64_t snap_id = 0;

void encode(bufferlist &bl) const;
void decode(__u8 version, bufferlist::iterator &iter);
Expand Down
2 changes: 1 addition & 1 deletion src/librbd/operation/FlattenRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FlattenRequest : public Request<ImageCtxT>
uint64_t m_overlap_objects;
::SnapContext m_snapc;
ProgressContext &m_prog_ctx;
State m_state;
State m_state = STATE_FLATTEN_OBJECTS;

ParentSpec m_parent_spec;
bool m_ignore_enoent;
Expand Down
2 changes: 1 addition & 1 deletion src/librbd/operation/RebuildObjectMapRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class RebuildObjectMapRequest : public AsyncRequest<ImageCtxT> {

ImageCtxT &m_image_ctx;
ProgressContext &m_prog_ctx;
State m_state;
State m_state = STATE_RESIZE_OBJECT_MAP;
bool m_attempted_trim;

void send_resize_object_map();
Expand Down