From 78f310d853a26d145ff6c13496f418f7bb531d68 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Sat, 12 Apr 2014 21:26:55 -0700 Subject: [PATCH] PG: constify the init() function params Signed-off-by: Greg Farnum --- src/osd/PG.cc | 6 +++--- src/osd/PG.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index dc9d4715eb932..2bbb440568b09 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2312,9 +2312,9 @@ void PG::clear_publish_stats() */ void PG::init( int role, - vector& newup, int new_up_primary, - vector& newacting, int new_acting_primary, - pg_history_t& history, + const vector& newup, int new_up_primary, + const vector& newacting, int new_acting_primary, + const pg_history_t& history, pg_interval_map_t& pi, bool backfill, ObjectStore::Transaction *t) diff --git a/src/osd/PG.h b/src/osd/PG.h index 6a15f2b366a91..b750231e28c32 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -1955,11 +1955,11 @@ public: void init( int role, - vector& up, + const vector& up, int up_primary, - vector& acting, + const vector& acting, int acting_primary, - pg_history_t& history, + const pg_history_t& history, pg_interval_map_t& pim, bool backfill, ObjectStore::Transaction *t); -- 2.39.5