MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / newTransaction

Method newTransaction

src/QLPlan.actor.cpp:662–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662Reference<DocTransaction> NonIsolatedPlan::newTransaction() {
663 Reference<FDB::Transaction> tr = database->createTransaction();
664 int64_t timeoutMS = 4000;
665 tr->setOption(FDB_TR_OPTION_TIMEOUT, StringRef((uint8_t*)&timeoutMS, sizeof(timeoutMS)));
666 tr->setOption(FDB_TR_OPTION_CAUSAL_READ_RISKY);
667 return DocTransaction::create(tr);
668}
669
670Reference<DocTransaction> NonIsolatedPlan::newTransaction(Reference<FDB::Database> database) {
671 Reference<FDB::Transaction> tr = database->createTransaction();

Callers 3

Future<Void> doRetryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected