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

Function krmSetPreviouslyEmptyRange

fdbclient/KeyRangeMap.actor.cpp:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void krmSetPreviouslyEmptyRange(Transaction* tr,
157 const KeyRef& mapPrefix,
158 const KeyRangeRef& keys,
159 const ValueRef& newValue,
160 const ValueRef& oldEndValue) {
161 KeyRange withPrefix =
162 KeyRangeRef(mapPrefix.toString() + keys.begin.toString(), mapPrefix.toString() + keys.end.toString());
163 tr->set(withPrefix.begin, newValue);
164 tr->set(withPrefix.end, oldEndValue);
165}
166
167void krmSetPreviouslyEmptyRange(CommitTransactionRef& tr,
168 Arena& trArena,

Calls 3

setMethod · 0.65
KeyRangeRefClass · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected