]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove unnecessary check
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 15 Jan 2021 09:38:12 +0000 (18:38 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Tue, 2 Mar 2021 04:23:39 +0000 (13:23 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
(cherry-picked from commit 1109a59e2941cf4b16798cd04941daf350ec0d22)

src/osd/PrimaryLogPG.cc

index 2d2fbf82d31903cfb92e2143288c62abe0aac6a8..2fa3c40f91f18ce3fd98c17aa868aac106b728a6 100644 (file)
@@ -3364,11 +3364,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;
       }
     }
   }