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

osd: replace object_info_t::operator=() with decode() #13938

Merged
merged 1 commit into from Mar 20, 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/osd/PG.cc
Expand Up @@ -3871,7 +3871,7 @@ void PG::_scan_snaps(ScrubMap &smap)
bl.push_back(o.attrs[OI_ATTR]);
object_info_t oi;
try {
oi = bl;
oi.decode(bl);
} catch(...) {
o.nlinks = 0;
continue;
Expand Down
4 changes: 0 additions & 4 deletions src/osd/osd_types.h
Expand Up @@ -4117,10 +4117,6 @@ struct object_info_t {
explicit object_info_t(bufferlist& bl) {
decode(bl);
}
object_info_t operator=(bufferlist& bl) {
decode(bl);
return *this;
}
};
WRITE_CLASS_ENCODER_FEATURES(object_info_t)

Expand Down