Skip to content

Commit 3a94a7b

Browse files
committed
rgw: Record the service_unique_id, if present, in the SrviceMap
For consistency and ease associating the two. Signed-off-by: Adam C. Emerson <[email protected]>
1 parent 6dc3224 commit 3a94a7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rgw/driver/rados/rgw_rados.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,10 @@ int RGWRados::register_to_service_map(const DoutPrefixProvider *dpp, const strin
12031203
metadata["realm_name"] = svc.zone->get_realm().get_name();
12041204
metadata["realm_id"] = svc.zone->get_realm().get_id();
12051205
metadata["id"] = name;
1206+
auto service_unique_id = cct->_conf.get_val<std::string>("service_unique_id");
1207+
if (!service_unique_id.empty()) {
1208+
metadata["service_unique_id"] = std::move(service_unique_id);
1209+
}
12061210
int ret = rados.service_daemon_register(
12071211
daemon_type,
12081212
stringify(rados.get_instance_id()),

0 commit comments

Comments
 (0)