]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: replace '-''s with '_''s in the sync delta counter labels
authorAli Maredia <amaredia@redhat.com>
Mon, 22 Apr 2024 15:26:02 +0000 (11:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 29 Jan 2025 17:12:21 +0000 (12:12 -0500)
Signed-off-by: Ali Maredia <amaredia@redhat.com>
src/rgw/driver/rados/rgw_data_sync.cc

index b81339717844b0addf7b790541d66ed34ba7fe47..5972b3bd55ee5ade78bd276c734f9fd883e88478 100644 (file)
@@ -1133,9 +1133,9 @@ public:
     std::string sz_id = sc->source_zone.id;
     std::string lz_id = sc->env->svc->zone->get_zone_params().get_id();
     return ceph::perf_counters::key_create(rgw_sync_delta_counters_key,
-        {{"local-zone-id", lz_id},
-        {"source-zone-id", sz_id},
-        {"shard-id", std::to_string(shard_id)}});
+        {{"local_zone_id", lz_id},
+        {"source_zone_id", sz_id},
+        {"shard_id", std::to_string(shard_id)}});
   }
 
   RGWCoroutine* store_marker(const string& new_marker, uint64_t index_pos, const real_time& timestamp, const real_time& last_update) override {