]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: inline mds_role_t stream operator
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 21 Feb 2020 19:28:18 +0000 (11:28 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 24 Feb 2020 19:15:32 +0000 (11:15 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/mdstypes.cc
src/mds/mdstypes.h

index 76cd4576c187ac36f8be0be23f1e61ffb446e93b..b7f5d87cfa566c9e37fdcc39e8fa3c47d7aed2ef 100644 (file)
@@ -924,11 +924,3 @@ void snaprealm_reconnect_t::generate_test_instances(std::list<snaprealm_reconnec
   ls.back()->realm.seq = 2;
   ls.back()->realm.parent = 1;
 }
-
-
-ostream& operator<<(ostream &out, const mds_role_t &role)
-{
-  out << role.fscid << ":" << role.rank;
-  return out;
-}
-
index c3e741cb6a9e81dc93a3e5dd9dbac77b4b1437d0..ddaed5666d609c9089e4d3b4ce30bb475fd03387 100644 (file)
@@ -104,7 +104,9 @@ public:
   fs_cluster_id_t fscid = FS_CLUSTER_ID_NONE;
   mds_rank_t rank = MDS_RANK_NONE;
 };
-std::ostream& operator<<(std::ostream &out, const mds_role_t &role);
+inline std::ostream& operator<<(std::ostream& out, const mds_role_t& role) {
+  return out << role.fscid << ":" << role.rank;
+}
 
 // CAPS
 inline string gcap_string(int cap)