os/bluestore: fsck: dump_onode after shards are loaded

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-02-02 14:12:05 -05:00
parent 44c3ec81e9
commit 2045431c61

View File

@ -4755,7 +4755,6 @@ int BlueStore::fsck(bool deep)
dout(10) << __func__ << " " << oid << dendl;
RWLock::RLocker l(c->lock);
OnodeRef o = c->get_onode(oid, false);
_dump_onode(o, 30);
if (o->onode.nid) {
if (o->onode.nid > nid_max) {
derr << __func__ << " " << oid << " nid " << o->onode.nid
@ -4773,6 +4772,7 @@ int BlueStore::fsck(bool deep)
++num_objects;
num_spanning_blobs += o->extent_map.spanning_blob_map.size();
o->extent_map.fault_range(db, 0, OBJECT_MAX_SIZE);
_dump_onode(o, 30);
// shards
if (!o->extent_map.shards.empty()) {
++num_sharded_objects;