Parse the LogRecord key to get the actual key and transaction sequence number seq
(key []byte)
| 170 | |
| 171 | // Parse the LogRecord key to get the actual key and transaction sequence number seq |
| 172 | func 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 | } |
no outgoing calls
no test coverage detected