Skip to content

Commit

Permalink
osd/OSDMap: An empty bucket or OSD is not an error
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/48884

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
  • Loading branch information
badone committed Jan 21, 2021
1 parent 3dc72a0 commit 4f07cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osd/OSDMap.cc
Expand Up @@ -5315,7 +5315,7 @@ class OSDUtilizationDumper : public CrushTreeDumper::Dumper<F> {
*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,
Expand Down Expand Up @@ -5359,7 +5359,7 @@ class OSDUtilizationDumper : public CrushTreeDumper::Dumper<F> {
*kb_used_meta += kb_used_meta_i;
*kb_avail += kb_avail_i;
}
return *kb > 0;
return true;
}

protected:
Expand Down

0 comments on commit 4f07cff

Please sign in to comment.