From 4b50688bbaeac8588ea899da7aa213a220ed66d0 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 6 Oct 2020 17:59:16 -0400 Subject: [PATCH] rgw: use const for string constants in rgw_data_sync.cc Signed-off-by: Casey Bodley --- src/rgw/rgw_data_sync.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 312b553700e4f..bc11629ff27e6 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); -- 2.39.5