Skip to content

Commit

Permalink
osd: remove unnecessary check
Browse files Browse the repository at this point in the history
Signed-off-by: Myoungwon Oh <[email protected]>
  • Loading branch information
myoungwon committed Jan 21, 2021
1 parent cb7cf5b commit 1109a59
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/osd/PrimaryLogPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3356,11 +3356,9 @@ int PrimaryLogPG::get_manifest_ref_count(ObjectContextRef obc, std::string& fp_o
obc_g ? &(obc_g->obs.oi.manifest) : nullptr ,
nullptr,
refs);
if (!refs.is_empty()) {
for (auto p = refs.begin(); p != refs.end(); ++p) {
if (p->first.oid.name == fp_oid && p->second > 0) {
cnt += p->second;
}
for (auto p = refs.begin(); p != refs.end(); ++p) {
if (p->first.oid.name == fp_oid && p->second > 0) {
cnt += p->second;
}
}
}
Expand Down

0 comments on commit 1109a59

Please sign in to comment.