From: Casey Bodley Date: Tue, 6 Oct 2020 21:59:16 +0000 (-0400) Subject: rgw: use const for string constants in rgw_data_sync.cc X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4fd3467b017d38a257a19f0bc1d7331e2e9d9161;p=ceph.git rgw: use const for string constants in rgw_data_sync.cc Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 9e06c8c12085a..c9a909154842e 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -46,12 +46,11 @@ using namespace std; -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) { JSONDecoder::decode_json("num_objects", num_shards, obj);