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

Function populateAndGetTenant

fdbclient/NativeAPI.actor.cpp:5271–5279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5269}
5270
5271Future<TenantInfo> populateAndGetTenant(Reference<TransactionState> trState, Key const& key, Version version) {
5272 if (!trState->tenant().present() || key == metadataVersionKey) {
5273 return TenantInfo();
5274 } else if (trState->tenantId() != TenantInfo::INVALID_TENANT) {
5275 return trState->getTenantInfo();
5276 } else {
5277 return getTenantMetadata(trState, key, version);
5278 }
5279}
5280
5281// FIXME: This seems pretty horrible. Now a Database can't die until all of its watches do...
5282ACTOR Future<Void> watch(Reference<Watch> watch,

Callers 1

watchMethod · 0.85

Calls 4

TenantInfoClass · 0.85
tenantIdMethod · 0.80
getTenantInfoMethod · 0.80
presentMethod · 0.45

Tested by

no test coverage detected