From 53a40b6a72d0e7c36c0f0ae419143aa3d4eca977 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 7 Mar 2016 18:00:09 +0100 Subject: [PATCH] rgw/rgw_sync.*: pass const parameter by reference Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_sync.cc | 2 +- src/rgw/rgw_sync.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index e78dc98d2a702..c44305edf33c3 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 9fc9430acf5fa..298cd4ed4b55f 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); -- 2.39.5