From: Sage Weil Date: Thu, 24 Dec 2015 15:17:06 +0000 (-0500) Subject: os/kstore: debug nid X-Git-Tag: v10.0.3~154^2~27 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e4e1a7f41a3723616c26905fe699e4277dbbe918;p=ceph.git os/kstore: debug nid Signed-off-by: Sage Weil --- diff --git a/src/os/kstore/KStore.cc b/src/os/kstore/KStore.cc index 1151436e99d0..d47434315793 100644 --- a/src/os/kstore/KStore.cc +++ b/src/os/kstore/KStore.cc @@ -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;