From c4a60ecdeb8c8f8235b847cf46bd0761441f8e42 Mon Sep 17 00:00:00 2001 From: huanwen ren Date: Mon, 4 Jul 2016 20:04:38 +0800 Subject: [PATCH] mds/CDentry: add path_ino and is_primary in the dump() path_ino and is_primary are main reference information in the dump(), so add their Signed-off-by: huanwen ren --- src/mds/CDentry.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index 12820bd45c8e..2b953a03c349 100644 --- a/src/mds/CDentry.cc +++ b/src/mds/CDentry.cc @@ -559,11 +559,13 @@ void CDentry::dump(Formatter *f) const make_path(path); f->dump_string("path", path.get_path()); + f->dump_unsigned("path_ino", path.get_ino().val); 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_primary", get_linkage()->is_primary()); f->dump_bool("is_remote", get_linkage()->is_remote()); + f->dump_bool("is_null", get_linkage()->is_null()); f->dump_bool("is_new", is_new()); if (get_linkage()->get_inode()) { f->dump_unsigned("inode", get_linkage()->get_inode()->ino()); -- 2.47.3