Skip to content

Commit 56d7e88

Browse files
authored
Merge pull request ceph#62815 from aclamk/aclamk-bs-debug-print-shards
os/bluestore: Add printing shards to Onode::printer
2 parents 58b940a + 40ab7c2 commit 56d7e88

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/os/bluestore/BlueStore_debug.cc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,15 @@ std::ostream& operator<<(std::ostream& out, const BlueStore::Onode::printer &p)
231231
<< " (" << std::dec << o.onode.size << ")"
232232
<< " expected_object_size " << o.onode.expected_object_size
233233
<< " expected_write_size " << o.onode.expected_write_size
234-
<< " in " << o.onode.extent_map_shards.size() << " shards"
235-
<< ", " << o.extent_map.spanning_blob_map.size()
234+
<< " in " << o.onode.extent_map_shards.size() << " shards";
235+
if (o.onode.extent_map_shards.size() > 0) {
236+
out << ":" << std::hex;
237+
for (auto& s : o.onode.extent_map_shards) {
238+
out << " 0x" << s.offset;
239+
}
240+
out << std::dec;
241+
}
242+
out << ", " << o.extent_map.spanning_blob_map.size()
236243
<< " spanning blobs";
237244
const BlueStore::ExtentMap& map = o.extent_map;
238245
std::set<BlueStore::Blob*> visited;

0 commit comments

Comments
 (0)