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

Method start

bindings/java/JavaWorkload.cpp:577–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575 }
576 }
577 void start(FDBDatabase* db, GenericPromise<bool> done) override {
578 if (failed) {
579 done.send(false);
580 return;
581 }
582 try {
583 jvm->callWorkload(workload, db, "start", std::move(done));
584 } catch (JNIError& e) {
585 failed = true;
586 log.trace(error, "StartFailedWithJNIError", { { "Error", e.toString() }, { "Location", e.location() } });
587 }
588 }
589 void check(FDBDatabase* db, GenericPromise<bool> done) override {
590 if (failed) {
591 done.send(false);

Callers

nothing calls this directly

Calls 6

moveFunction · 0.85
callWorkloadMethod · 0.80
sendMethod · 0.45
traceMethod · 0.45
toStringMethod · 0.45
locationMethod · 0.45

Tested by

no test coverage detected