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

Method coalesceUnder

fdbclient/WriteMap.cpp:498–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498RYWMutation WriteMap::coalesceUnder(OperationStack const& stack, Optional<ValueRef> const& value, Arena& arena) {
499 if (!stack.isDependent() && stack.size() == 1)
500 return stack.at(0);
501
502 RYWMutation currentEntry = RYWMutation(value, MutationRef::SetValue);
503 for (int i = 0; i < stack.size(); ++i) {
504 currentEntry = coalesce(currentEntry, stack.at(i), arena);
505 }
506
507 return currentEntry;
508}
509
510void WriteMap::dump() {
511 iterator it(this);

Callers

nothing calls this directly

Calls 4

RYWMutationClass · 0.85
isDependentMethod · 0.80
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected