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

Function dataMoveKeyFor

fdbclient/SystemData.cpp:321–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319// "\xff/dataMoves/[[UID]] := [[DataMoveMetaData]]"
320const KeyRangeRef dataMoveKeys("\xff/dataMoves/"_sr, "\xff/dataMoves0"_sr);
321const Key dataMoveKeyFor(UID dataMoveId) {
322 BinaryWriter wr(Unversioned());
323 wr.serializeBytes(dataMoveKeys.begin);
324 wr << dataMoveId;
325 return wr.toValue();
326}
327
328const Value dataMoveValue(const DataMoveMetaData& dataMoveMetaData) {
329 return ObjectWriter::toValue(dataMoveMetaData, IncludeVersion());

Callers 4

finishMoveShardsFunction · 0.85
MoveKeys.actor.cppFile · 0.85

Calls 3

UnversionedFunction · 0.85
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected