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

Function decodeBKMutationLogKey

fdbclient/BackupAgentBase.actor.cpp:250–254  ·  view source on GitHub ↗

Given a key from one of the ranges returned by get_log_ranges, returns(version, part) where version is the database version number of the transaction log data in the value, and part is 0 for the first such data for a given version, 1 for the second block of data, etc.

Source from the content-addressed store, hash-verified

248// the transaction log data in the value, and part is 0 for the first such
249// data for a given version, 1 for the second block of data, etc.
250std::pair<Version, uint32_t> decodeBKMutationLogKey(Key key) {
251 return std::make_pair(
252 getLogKeyVersion(key),
253 bigEndian32(*(int32_t*)(key.begin() + backupLogPrefixBytes + sizeof(UID) + sizeof(uint8_t) + sizeof(int64_t))));
254}
255
256void decodeBackupLogValue(Arena& arena,
257 VectorRef<MutationRef>& result,

Callers 2

Future<Void> checkDataFunction · 0.85
checkDataMethod · 0.85

Calls 2

getLogKeyVersionFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected