]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/ObjectCacher: improve debug output for readx()
authorSage Weil <sage@inktank.com>
Wed, 24 Oct 2012 21:43:03 +0000 (14:43 -0700)
committerSage Weil <sage@inktank.com>
Fri, 26 Oct 2012 18:31:45 +0000 (11:31 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osdc/ObjectCacher.cc

index c56423b32a67dec7cd27108db76f622197c37254..f2f11187c2c9765c61929312bb21121fbc862fdd 100644 (file)
@@ -991,13 +991,12 @@ int ObjectCacher::_readx(OSDRead *rd, ObjectSet *oset, Context *onfinish,
         BufferHead *bh = bh_it->second;
         assert(opos == (loff_t)(bh->start() + bhoff));
 
+        uint64_t len = MIN(f_it->second - foff, bh->length() - bhoff);
         ldout(cct, 10) << "readx rmap opos " << opos
-                 << ": " << *bh << " +" << bhoff
-                 << " frag " << f_it->first << "~" << f_it->second << " +" << foff
-                 << dendl;
+                      << ": " << *bh << " +" << bhoff
+                      << " frag " << f_it->first << "~" << f_it->second << " +" << foff << "~" << len
+                      << dendl;
 
-        uint64_t len = MIN(f_it->second - foff,
-                         bh->length() - bhoff);
        bufferlist bit;  // put substr here first, since substr_of clobbers, and
                         // we may get multiple bh's at this stripe_map position
        bit.substr_of(bh->bl,