]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ObjectCacher: more debugging for read completions
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 16 Nov 2012 00:53:37 +0000 (16:53 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 16 Nov 2012 23:22:38 +0000 (15:22 -0800)
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/osdc/ObjectCacher.cc

index 648e44985d3dda289e6239a1a3b200dd3599e220..16020e76d5c057dc16bce065dc3987c138569d40 100644 (file)
@@ -624,10 +624,15 @@ void ObjectCacher::bh_read_finish(int64_t poolid, sobject_t oid, loff_t start,
       map<loff_t, BufferHead*>::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<loff_t, list<Context*> >::iterator it = bh->waitfor_read.begin();