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

Method start

fdbserver/workloads/ExternalWorkload.actor.cpp:191–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 Future<Void> start(Database const& cx) override {
192 if (!success) {
193 return Void();
194 }
195 auto db = cx.getPtr();
196 db->addref();
197 Reference<IDatabase> database(new ThreadSafeDatabase(db));
198 Promise<bool> promise;
199 auto f = promise.getFuture();
200 keepAlive(f, database);
201 workloadImpl->start(reinterpret_cast<FDBDatabase*>(database.getPtr()),
202 GenericPromise<bool>(new FDBPromiseImpl(promise)));
203 return assertTrue(LiteralStringRef("start"), f);
204 }
205 Future<bool> check(Database const& cx) override {
206 if (!success) {
207 return false;

Callers

nothing calls this directly

Calls 4

VoidClass · 0.50
getPtrMethod · 0.45
addrefMethod · 0.45
getFutureMethod · 0.45

Tested by

no test coverage detected