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

Method setOption

fdbclient/MultiVersionTransaction.actor.cpp:431–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void DLTransaction::setOption(FDBTransactionOptions::Option option, Optional<StringRef> value) {
432 throwIfError(api->transactionSetOption(tr,
433 static_cast<FDBTransactionOption>(option),
434 value.present() ? value.get().begin() : nullptr,
435 value.present() ? value.get().size() : 0));
436}
437
438ThreadFuture<Void> DLTransaction::onError(Error const& e) {
439 FdbCApi::FDBFuture* f = api->transactionOnError(tr, e.code());

Callers

nothing calls this directly

Calls 14

TraceEventClass · 0.85
getTransactionFunction · 0.85
detailMethod · 0.80
emplace_backMethod · 0.80
addOptionMethod · 0.80
throwIfErrorFunction · 0.70
getMethod · 0.65
setOptionMethod · 0.65
presentMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected