From: huanwen ren Date: Mon, 4 Jul 2016 11:22:21 +0000 (+0800) Subject: mds: fixup dump Formatter' type error X-Git-Tag: ses5-milestone5~495^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f1d37778e4fdb02d22e8a421a53ffff4d8ac6af8;p=ceph.git mds: fixup dump Formatter' type error fixup dump Formatter' type error, dump_int->dump_unsigned Signed-off-by: huanwen ren --- diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index 83470dca68f..12820bd45c8 100644 --- a/src/mds/CDentry.cc +++ b/src/mds/CDentry.cc @@ -559,16 +559,16 @@ void CDentry::dump(Formatter *f) const make_path(path); f->dump_string("path", path.get_path()); - f->dump_int("snap_first", first); - f->dump_int("snap_last", last); - + f->dump_unsigned("snap_first", first); + f->dump_unsigned("snap_last", last); + f->dump_bool("is_null", get_linkage()->is_null()); f->dump_bool("is_remote", get_linkage()->is_remote()); f->dump_bool("is_new", is_new()); if (get_linkage()->get_inode()) { - f->dump_int("inode", get_linkage()->get_inode()->ino()); + f->dump_unsigned("inode", get_linkage()->get_inode()->ino()); } else { - f->dump_int("inode", 0); + f->dump_unsigned("inode", 0); } if (linkage.is_remote()) { @@ -577,8 +577,8 @@ void CDentry::dump(Formatter *f) const f->dump_string("remote_type", ""); } - f->dump_int("version", get_version()); - f->dump_int("projected_version", get_projected_version()); + f->dump_unsigned("version", get_version()); + f->dump_unsigned("projected_version", get_projected_version()); f->dump_int("auth_pins", auth_pins); f->dump_int("nested_auth_pins", nested_auth_pins); diff --git a/src/mds/mdstypes.cc b/src/mds/mdstypes.cc index 9a48037d0d8..2cc04e04397 100644 --- a/src/mds/mdstypes.cc +++ b/src/mds/mdstypes.cc @@ -1066,7 +1066,7 @@ void MDSCacheObject::dump(Formatter *f) const f->dump_int("first", authority().first); f->dump_int("second", authority().second); f->close_section(); - f->dump_int("replica_nonce", get_replica_nonce()); + f->dump_unsigned("replica_nonce", get_replica_nonce()); } f->close_section(); // replica_state