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

Method getTransaction

fdbclient/MultiVersionTransaction.actor.cpp:1132–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1130}
1131
1132MultiVersionTransaction::TransactionInfo MultiVersionTransaction::getTransaction() {
1133 lock.enter();
1134 MultiVersionTransaction::TransactionInfo currentTr(transaction);
1135 lock.leave();
1136
1137 return currentTr;
1138}
1139
1140void MultiVersionTransaction::cancel() {
1141 auto tr = getTransaction();

Calls 2

enterMethod · 0.45
leaveMethod · 0.45