From 8167a22f3d28c2a31a7187cd726f5a450effa012 Mon Sep 17 00:00:00 2001 From: x11562 Date: Wed, 3 Feb 2016 11:18:10 +0800 Subject: [PATCH] mds: function parameter 'df' should be passed by reference Signed-off-by: Na Xie --- src/mds/mdstypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 4e1b926d5558..ab6e488274f2 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -941,7 +941,7 @@ struct dirfrag_t { WRITE_CLASS_ENCODER(dirfrag_t) -inline std::ostream& operator<<(std::ostream& out, const dirfrag_t df) { +inline std::ostream& operator<<(std::ostream& out, const dirfrag_t &df) { out << df.ino; if (!df.frag.is_root()) out << "." << df.frag; return out; -- 2.47.3