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

Method onConnected

fdbclient/ThreadSafeTransaction.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34// of these functions.
35
36ThreadFuture<Void> ThreadSafeDatabase::onConnected() {
37 DatabaseContext* db = this->db;
38 return onMainThread([db]() -> Future<Void> {
39 db->checkDeferredError();
40 return db->onConnected();
41 });
42}
43
44ThreadFuture<Reference<IDatabase>> ThreadSafeDatabase::createFromExistingDatabase(Database db) {
45 return onMainThread([db]() {

Callers

nothing calls this directly

Calls 2

onMainThreadFunction · 0.50
checkDeferredErrorMethod · 0.45

Tested by

no test coverage detected