From 663cf89573b68d30f186df47dbc2ed7de24cc51b Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Fri, 3 Jun 2016 22:24:38 +0100 Subject: [PATCH] osd/ReplicatedPG.h: add const to operator<< param Signed-off-by: Michal Jarzabek --- src/osd/ReplicatedPG.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index d076720be7313..a150eab20b1fd 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -1654,7 +1654,7 @@ public: bool user_only = false); }; -inline ostream& operator<<(ostream& out, ReplicatedPG::RepGather& repop) +inline ostream& operator<<(ostream& out, const ReplicatedPG::RepGather& repop) { out << "repgather(" << &repop << " " << repop.v @@ -1665,7 +1665,8 @@ inline ostream& operator<<(ostream& out, ReplicatedPG::RepGather& repop) return out; } -inline ostream& operator<<(ostream& out, ReplicatedPG::ProxyWriteOpRef pwop) +inline ostream& operator<<(ostream& out, + const ReplicatedPG::ProxyWriteOpRef& pwop) { out << "proxywrite(" << &pwop << " " << pwop->user_version -- 2.39.5