]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: break down onode vs bnode_map size in log
authorSage Weil <sage@redhat.com>
Wed, 17 Aug 2016 14:31:08 +0000 (10:31 -0400)
committerSage Weil <sage@redhat.com>
Thu, 18 Aug 2016 18:23:20 +0000 (14:23 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index eac416d0e8e63778825a4142c68bba9af74d31b2..9493a66926f7fce4d2afa66bdfb84e865bca4243 100644 (file)
@@ -4909,8 +4909,11 @@ void BlueStore::_txc_write_nodes(TransContext *txc, KeyValueDB::Transaction t)
        ++p) {
     bufferlist bl;
     ::encode((*p)->onode, bl);
+    unsigned first_part = bl.length();
     (*p)->blob_map.encode(bl);
-    dout(20) << "  onode " << (*p)->oid << " is " << bl.length() << dendl;
+    dout(20) << "  onode " << (*p)->oid << " is " << bl.length()
+            << " (" << first_part << " onode + "
+            << (bl.length() - first_part) << " blob_map)" << dendl;
     t->set(PREFIX_OBJ, (*p)->key, bl);
 
     std::lock_guard<std::mutex> l((*p)->flush_lock);