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

Method create

fdbclient/NativeAPI.actor.cpp:1783–1802  ·  view source on GitHub ↗

Static constructor used by server processes to create a DatabaseContext For internal (fdbserver) use only

Source from the content-addressed store, hash-verified

1781// Static constructor used by server processes to create a DatabaseContext
1782// For internal (fdbserver) use only
1783Database DatabaseContext::create(Reference<AsyncVar<ClientDBInfo>> clientInfo,
1784 Future<Void> clientInfoMonitor,
1785 LocalityData clientLocality,
1786 EnableLocalityLoadBalance enableLocalityLoadBalance,
1787 TaskPriority taskID,
1788 LockAware lockAware,
1789 int apiVersion,
1790 IsSwitchable switchable) {
1791 return Database(new DatabaseContext(Reference<AsyncVar<Reference<IClusterConnectionRecord>>>(),
1792 clientInfo,
1793 makeReference<AsyncVar<Optional<ClientLeaderRegInterface>>>(),
1794 clientInfoMonitor,
1795 taskID,
1796 clientLocality,
1797 enableLocalityLoadBalance,
1798 lockAware,
1799 IsInternal::True,
1800 apiVersion,
1801 switchable));
1802}
1803
1804DatabaseContext::~DatabaseContext() {
1805 cacheListMonitor.cancel();

Callers

nothing calls this directly

Calls 1

DatabaseClass · 0.50

Tested by

no test coverage detected