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

Method setup

bindings/java/JavaWorkload.cpp:565–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563 return failed;
564 };
565 void setup(FDBDatabase* db, GenericPromise<bool> done) override {
566 if (failed) {
567 done.send(false);
568 return;
569 }
570 try {
571 jvm->callWorkload(workload, db, "setup", std::move(done));
572 } catch (JNIError& e) {
573 failed = true;
574 log.trace(error, "SetupFailedWithJNIError", { { "Error", e.toString() }, { "Location", e.location() } });
575 }
576 }
577 void start(FDBDatabase* db, GenericPromise<bool> done) override {
578 if (failed) {
579 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