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

Method create

fdbclient/ISingleThreadTransaction.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Reference<ISingleThreadTransaction> ISingleThreadTransaction::create(Type type, Database const& cx) {
48 Reference<ISingleThreadTransaction> result;
49 if (type == Type::RYW) {
50 result = makeReference<ReadYourWritesTransaction>();
51 } else if (type == Type::SIMPLE_CONFIG) {
52 result = makeReference<SimpleConfigTransaction>();
53 } else {
54 result = makeReference<PaxosConfigTransaction>();
55 }
56 result->construct(cx);
57 return result;
58}
59
60Reference<ISingleThreadTransaction> ISingleThreadTransaction::create(Type type,
61 Database const& cx,

Callers

nothing calls this directly

Calls 1

constructMethod · 0.45

Tested by

no test coverage detected