From: Michal Jarzabek Date: Fri, 3 Jun 2016 21:24:38 +0000 (+0100) Subject: osd/ReplicatedPG.h: add const to operator<< param X-Git-Tag: v11.0.0~307^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=663cf89573b68d30f186df47dbc2ed7de24cc51b;p=ceph.git osd/ReplicatedPG.h: add const to operator<< param Signed-off-by: Michal Jarzabek --- diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index d076720be73..a150eab20b1 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