]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fixup dump Formatter' type error
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 4 Jul 2016 11:22:21 +0000 (19:22 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 4 Jul 2016 11:22:21 +0000 (19:22 +0800)
fixup dump Formatter' type error,
dump_int->dump_unsigned

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mds/CDentry.cc
src/mds/mdstypes.cc

index 83470dca68fb173edf501b72656150eca34d9c3e..12820bd45c8e519d6ad478399cdb606f4e9d78cd 100644 (file)
@@ -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);
index 9a48037d0d8be88b133e8c940b154955d38b1247..2cc04e0439727ba6efce58f57919182597621709 100644 (file)
@@ -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