]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove unnecessary check 38767/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 15 Jan 2021 09:38:12 +0000 (18:38 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 21 Jan 2021 06:12:46 +0000 (15:12 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc

index 6cafd70ad9523a20a74feadb46026ec90413d8f2..56266a70cb409d32a65d01cf5e4fd4630f16eb9a 100644 (file)
@@ -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;
       }
     }
   }