]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: An empty bucket or OSD is not an error 38958/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 19 Jan 2021 04:08:08 +0000 (14:08 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 21 Jan 2021 03:15:23 +0000 (13:15 +1000)
Fixes: https://tracker.ceph.com/issues/48884
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/osd/OSDMap.cc

index 10bfd47b2253c8bcaeed50b155c08b6cf3b2d43f..72cdaffa9bd227d8c765d5a385774596c742f436 100644 (file)
@@ -5315,7 +5315,7 @@ protected:
     *kb_used_meta = p->statfs.kb_used_internal_metadata();
     *kb_avail = p->statfs.kb_avail();
     
-    return *kb > 0;
+    return true;
   }
 
   bool get_bucket_utilization(int id, int64_t* kb, int64_t* kb_used,
@@ -5359,7 +5359,7 @@ protected:
       *kb_used_meta += kb_used_meta_i;
       *kb_avail += kb_avail_i;
     }
-    return *kb > 0;
+    return true;
   }
 
 protected: