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

Method openTenant

fdbclient/MultiVersionTransaction.actor.cpp:512–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512Reference<ITenant> DLDatabase::openTenant(TenantNameRef tenantName) {
513 if (!api->databaseOpenTenant) {
514 throw unsupported_operation();
515 }
516
517 FdbCApi::FDBTenant* tenant;
518 throwIfError(api->databaseOpenTenant(db, tenantName.begin(), tenantName.size(), &tenant));
519 return makeReference<DLTenant>(api, tenant);
520}
521
522Reference<ITransaction> DLDatabase::createTransaction() {
523 FdbCApi::FDBTransaction* tr;

Callers

nothing calls this directly

Calls 3

throwIfErrorFunction · 0.70
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected