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

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 3a94a7b2ed02d20b2bc839b283e60cf4778f69e4)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index 1922202ef93d1892cd24a64133ed14a2651d2c3a..1385f75387f8384ed76773760918ae14dc38c05b 100644 (file)
@@ -1199,6 +1199,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()),