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.
| 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. |
| 250 | std::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 | |
| 256 | void decodeBackupLogValue(Arena& arena, |
| 257 | VectorRef<MutationRef>& result, |
no test coverage detected