From 9987f8f95cf2e6f9d7619e50a8b7742762d974ee Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 30 Jan 2012 13:28:44 -0800 Subject: msg: go const-crazy on messages - get_type_name() - print() and all the random crap they call. Signed-off-by: Sage Weil --- src/messages/MOSDRepScrub.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/messages/MOSDRepScrub.h') diff --git a/src/messages/MOSDRepScrub.h b/src/messages/MOSDRepScrub.h index 9837f287e18..522bfb22b21 100644 --- a/src/messages/MOSDRepScrub.h +++ b/src/messages/MOSDRepScrub.h @@ -41,8 +41,8 @@ private: ~MOSDRepScrub() {} public: - const char *get_type_name() { return "replica scrub"; } - void print(ostream& out) { + const char *get_type_name() const { return "replica scrub"; } + void print(ostream& out) const { out << "replica scrub(pg: "; out << pgid << ",from:" << scrub_from << ",to:" << scrub_to << "epoch:" << map_epoch; -- cgit v1.2.3