]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix dump of bluestore_lextent_t 10362/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Jul 2016 07:08:55 +0000 (15:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Jul 2016 07:08:55 +0000 (15:08 +0800)
The blob field can be negative, which means this extent is shared,
so we shall use dump_int() method instead of dump_unsigned() method.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/bluestore_types.cc

index 00a7e05de4e022c7b5275a4c756b3ad5c306df63..97278b8d32c105a7a968f40547c6db630984371c 100644 (file)
@@ -804,7 +804,7 @@ void bluestore_lextent_t::decode(bufferlist::iterator& p)
 
 void bluestore_lextent_t::dump(Formatter *f) const
 {
-  f->dump_unsigned("blob", blob);
+  f->dump_int("blob", blob);
   f->dump_unsigned("offset", offset);
   f->dump_unsigned("length", length);
 }