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

Method apply

fdbcli/fdbcli.actor.cpp:176–180  ·  view source on GitHub ↗

Applies all enabled transaction options to the given transaction

Source from the content-addressed store, hash-verified

174
175 // Applies all enabled transaction options to the given transaction
176 void apply(Reference<ITransaction> tr) {
177 for (const auto& [name, value] : transactionOptions.options) {
178 tr->setOption(name, value.castTo<StringRef>());
179 }
180 }
181
182 // Returns true if any options have been set
183 bool hasAnyOptionsEnabled() const { return !transactionOptions.options.empty(); }

Callers 2

getTransactionFunction · 0.45
fdbcli.actor.cppFile · 0.45

Calls 1

setOptionMethod · 0.65

Tested by

no test coverage detected