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-Tag: v18.0.0~787^2~188 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2e131242f7c2278160896e631c77d016a4dab6e;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 3c04a6d98996b..cd5a7dd4e4807 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);