Skip to content

Commit 236ce1c

Browse files
authored
Merge pull request ceph#64703 from myoungwon/wip-fix-print-rbm-space
crimson/os/seastore: fix incorrect total space reporting when using multiple shards in RBM Reviewed-by: Samuel Just <[email protected]>
2 parents 4b86a7e + 9c7cc0b commit 236ce1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crimson/os/seastore/async_cleaner.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,8 @@ class RBMCleaner : public AsyncCleaner {
18061806
auto rbs = rb_group->get_rb_managers();
18071807
size_t total = 0;
18081808
for (auto p : rbs) {
1809-
total += p->get_device()->get_available_size();
1809+
total += p->get_size();
1810+
total += p->get_journal_size();
18101811
}
18111812
return total;
18121813
}

0 commit comments

Comments
 (0)