]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_sync.*: pass const parameter by reference
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 7 Mar 2016 17:00:09 +0000 (18:00 +0100)
committerSage Weil <sage@redhat.com>
Wed, 9 Nov 2016 19:45:22 +0000 (14:45 -0500)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_sync.cc
src/rgw/rgw_sync.h

index e78dc98d2a702d4e7a81c7b36978e33e7141dada..c44305edf33c3fd9c98bdad58066e3b0ee8c3c3e 100644 (file)
@@ -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));
   }
index 9fc9430acf5fa8835bbe0de0facca0a9ac5a3321..298cd4ed4b55fe394eb3a5bacc7a5745ea2573d9 100644 (file)
@@ -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);