]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use const for string constants in rgw_data_sync.cc
authorCasey Bodley <cbodley@redhat.com>
Tue, 6 Oct 2020 21:59:16 +0000 (17:59 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 4 Feb 2021 21:11:29 +0000 (16:11 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc

index 28c39cffacc11e474ebd4798944b9075c63f92c0..953f20bfab3513ce0b08836a73eb4af263118bee 100644 (file)
 #undef dout_prefix
 #define dout_prefix (*_dout << "data sync: ")
 
-static string datalog_sync_status_oid_prefix = "datalog.sync-status";
-static string datalog_sync_status_shard_prefix = "datalog.sync-status.shard";
-static string datalog_sync_full_sync_index_prefix = "data.full-sync.index";
-static string bucket_status_oid_prefix = "bucket.sync-status";
-static string object_status_oid_prefix = "bucket.sync-status";
+static const string datalog_sync_status_oid_prefix = "datalog.sync-status";
+static const string datalog_sync_status_shard_prefix = "datalog.sync-status.shard";
+static const string datalog_sync_full_sync_index_prefix = "data.full-sync.index";
+static const string bucket_status_oid_prefix = "bucket.sync-status";
+static const string object_status_oid_prefix = "bucket.sync-status";
 
 
 void rgw_datalog_info::decode_json(JSONObj *obj) {