MCPcopy Create free account
hub / github.com/apple/foundationdb / getEncryptionKeysFullUrl

Function getEncryptionKeysFullUrl

fdbserver/RESTKmsConnector.actor.cpp:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151};
152
153std::string getEncryptionKeysFullUrl(Reference<RESTKmsConnectorCtx> ctx, const std::string& url) {
154 if (SERVER_KNOBS->REST_KMS_CONNECTOR_GET_ENCRYPTION_KEYS_ENDPOINT.empty()) {
155 TraceEvent("GetEncryptionKeysFullUrl_EmptyEndpoint", ctx->uid).log();
156 throw encrypt_invalid_kms_config();
157 }
158
159 std::string fullUrl(url);
160 return fullUrl.append("/").append(SERVER_KNOBS->REST_KMS_CONNECTOR_GET_ENCRYPTION_KEYS_ENDPOINT);
161}
162
163void dropCachedKmsUrls(Reference<RESTKmsConnectorCtx> ctx) {
164 while (!ctx->kmsUrlHeap.empty()) {

Callers 1

Calls 4

TraceEventClass · 0.85
emptyMethod · 0.45
logMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected