MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / WriteHintRecord

Method WriteHintRecord

engine/data/data_file.go:122–129  ·  view source on GitHub ↗

WriteHintRecord writes index information to the hint file.

(key []byte, pst *LogRecordPst)

Source from the content-addressed store, hash-verified

120
121// WriteHintRecord writes index information to the hint file.
122func (df *DataFile) WriteHintRecord(key []byte, pst *LogRecordPst) error {
123 record := &LogRecord{
124 Key: key,
125 Value: EncodeLogRecordPst(pst),
126 }
127 encRecord, _ := EncodeLogRecord(record)
128 return df.Write(encRecord)
129}
130
131func (df *DataFile) Sync() error {
132 return df.IoManager.Sync()

Callers 1

MergeMethod · 0.80

Calls 3

WriteMethod · 0.95
EncodeLogRecordPstFunction · 0.85
EncodeLogRecordFunction · 0.85

Tested by

no test coverage detected