Skip to content

Commit

Permalink
change record order to make it clearer what loc is
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Apr 15, 2024
1 parent 3ff33ef commit 5445585
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vilmo/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ type record struct {
// lookup if we need to access this log.
log *log

// loc is the offset of the record in the log file
//
// We store the beginning of the record here for using
// in nullify operations.
loc int64

// key is the length of the key
key string

// Only populated if the value is less than [minDiskValueSize]
cached bool
value []byte

// loc is the offset of the record in the log file
//
// We store the beginning of the record here for using
// in nullify operations.
loc int64
// size is the size fo the value in the log file
// size is the size of the value in the log file
size uint32

// interleaved (across batches) doubly-linked list allows for removals
Expand Down

0 comments on commit 5445585

Please sign in to comment.