MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / parseLogRecordKeyAndSeq

Function parseLogRecordKeyAndSeq

engine/batch.go:172–179  ·  view source on GitHub ↗

Parse the LogRecord key to get the actual key and transaction sequence number seq

(key []byte)

Source from the content-addressed store, hash-verified

170
171// Parse the LogRecord key to get the actual key and transaction sequence number seq
172func parseLogRecordKeyAndSeq(key []byte) ([]byte, uint64) {
173 seqNo, n := binary.Uvarint(key)
174
175 // Extract the real key from the remaining bytes
176 realKey := key[n:]
177
178 return realKey, seqNo
179}

Callers 2

MergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected