]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Record the `service_unique_id`, if present, in the SrviceMap 65350/head
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 8 Sep 2025 18:19:20 +0000 (14:19 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 8 Sep 2025 18:19:20 +0000 (14:19 -0400)
For consistency and ease associating the two.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index 3f8a58f9e167d4f8507957c2696383237bc22ddf..768e3ca8d9e02ddeae89fd77a1a434bb94dd894d 100644 (file)
@@ -1203,6 +1203,10 @@ int RGWRados::register_to_service_map(const DoutPrefixProvider *dpp, const strin
   metadata["realm_name"] = svc.zone->get_realm().get_name();
   metadata["realm_id"] = svc.zone->get_realm().get_id();
   metadata["id"] = name;
+  auto service_unique_id = cct->_conf.get_val<std::string>("service_unique_id");
+  if (!service_unique_id.empty()) {
+    metadata["service_unique_id"] = std::move(service_unique_id);
+  }
   int ret = rados.service_daemon_register(
     daemon_type,
     stringify(rados.get_instance_id()),