From: Danny Al-Gaaf Date: Mon, 7 Mar 2016 17:00:09 +0000 (+0100) Subject: rgw/rgw_sync.*: pass const parameter by reference X-Git-Tag: v11.1.0~327^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53a40b6a72d0e7c36c0f0ae419143aa3d4eca977;p=ceph.git rgw/rgw_sync.*: pass const parameter by reference Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index e78dc98d2a70..c44305edf33c 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -31,7 +31,7 @@ static string mdlog_sync_status_oid = "mdlog.sync-status"; static string mdlog_sync_status_shard_prefix = "mdlog.sync-status.shard"; static string mdlog_sync_full_sync_index_prefix = "meta.full-sync.index"; -RGWSyncErrorLogger::RGWSyncErrorLogger(RGWRados *_store, const string oid_prefix, int _num_shards) : store(_store), num_shards(_num_shards) { +RGWSyncErrorLogger::RGWSyncErrorLogger(RGWRados *_store, const string &oid_prefix, int _num_shards) : store(_store), num_shards(_num_shards) { for (int i = 0; i < num_shards; i++) { oids.push_back(get_shard_oid(oid_prefix, i)); } diff --git a/src/rgw/rgw_sync.h b/src/rgw/rgw_sync.h index 9fc9430acf5f..298cd4ed4b55 100644 --- a/src/rgw/rgw_sync.h +++ b/src/rgw/rgw_sync.h @@ -67,7 +67,7 @@ class RGWSyncErrorLogger { atomic_t counter; public: - RGWSyncErrorLogger(RGWRados *_store, const string oid_prefix, int _num_shards); + RGWSyncErrorLogger(RGWRados *_store, const string &oid_prefix, int _num_shards); RGWCoroutine *log_error_cr(const string& source_zone, const string& section, const string& name, uint32_t error_code, const string& message); static string get_shard_oid(const string& oid_prefix, int shard_id);