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

Method getSize

fdbclient/NativeAPI.actor.cpp:7201–7205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7199}
7200
7201uint32_t Transaction::getSize() {
7202 auto s = tr.transaction.mutations.expectedSize() + tr.transaction.read_conflict_ranges.expectedSize() +
7203 tr.transaction.write_conflict_ranges.expectedSize();
7204 return s;
7205}
7206
7207Future<Void> Transaction::onError(Error const& e) {
7208 if (g_network->isSimulated() && ++trState->numErrors % 10 == 0) {

Callers

nothing calls this directly

Calls 1

expectedSizeMethod · 0.45

Tested by

no test coverage detected