]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/kstore: debug nid
authorSage Weil <sage@redhat.com>
Thu, 24 Dec 2015 15:17:06 +0000 (10:17 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:08:54 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/kstore/KStore.cc

index 1151436e99d00c64a34960507606039d9a0b2afe..d4743431579390a89a59908bd66711b92d3022f2 100644 (file)
@@ -1527,7 +1527,7 @@ int KStore::_do_read(
   uint64_t stripe_off;
 
   dout(20) << __func__ << " " << offset << "~" << length << " size "
-          << o->onode.size << dendl;
+          << o->onode.size << " nid " << o->onode.nid << dendl;
   bl.clear();
 
   if (offset > o->onode.size) {
@@ -2176,7 +2176,7 @@ void KStore::_assign_nid(TransContext *txc, OnodeRef o)
     return;
   Mutex::Locker l(nid_lock);
   o->onode.nid = ++nid_last;
-  dout(20) << __func__ << " " << o->onode.nid << dendl;
+  dout(20) << __func__ << " " << o->oid << " nid " << o->onode.nid << dendl;
   if (nid_last > nid_max) {
     nid_max += g_conf->kstore_nid_prealloc;
     bufferlist bl;
@@ -2871,7 +2871,7 @@ int KStore::_do_write(TransContext *txc,
   dout(20) << __func__
           << " " << o->oid << " " << offset << "~" << length
           << " - have " << o->onode.size
-          << " bytes" << dendl;
+          << " bytes, nid " << o->onode.nid << dendl;
   _dump_onode(o);
   o->exists = true;