From: Josh Durgin Date: Fri, 16 Nov 2012 00:53:37 +0000 (-0800) Subject: ObjectCacher: more debugging for read completions X-Git-Tag: v0.55~82^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5d760b776aa061c13303d53dd3fae74ae88db332;p=ceph.git ObjectCacher: more debugging for read completions Signed-off-by: Josh Durgin --- diff --git a/src/osdc/ObjectCacher.cc b/src/osdc/ObjectCacher.cc index 648e44985d3d..16020e76d5c0 100644 --- a/src/osdc/ObjectCacher.cc +++ b/src/osdc/ObjectCacher.cc @@ -624,10 +624,15 @@ void ObjectCacher::bh_read_finish(int64_t poolid, sobject_t oid, loff_t start, map::iterator p = ob->data.lower_bound(opos); if (p == ob->data.end()) break; - if (opos >= start+(loff_t)length) + if (opos >= start+(loff_t)length) { + ldout(cct, 20) << "break due to opos " << opos << " >= start+length " + << start << "+" << length << "=" << start+(loff_t)length + << dendl; break; + } BufferHead *bh = p->second; + ldout(cct, 20) << "checking bh " << *bh << dendl; // finishers? for (map >::iterator it = bh->waitfor_read.begin();