Skip to content

Commit

Permalink
fix ci bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcsjc123 committed Aug 18, 2023
1 parent dbf55bc commit 392174a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions db/memory/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func NewWal(options Options) (*Wal, error) {
}

// Put writes a record to the WAL.
//+---------+-----------+-----------+----------------+--- ... ---+
//|CRC (4B) | Size (2B) | Type (1B) | Log number (4B)| Payload |
//+---------+-----------+-----------+----------------+--- ... ---+
//Same as above, with the addition of
//Log number = 32bit log file number, so that we can distinguish between
//records written by the most recent log writer vs a previous one.
// +---------+-----------+-----------+----------------+--- ... ---+
// |CRC (4B) | Size (2B) | Type (1B) | Log number (4B)| Payload |
// +---------+-----------+-----------+----------------+--- ... ---+
// Same as above, with the addition of
// Log number = 32bit log file number, so that we can distinguish between
// records written by the most recent log writer vs a previous one.
func (w *Wal) writeRecord(recordType byte, key, value []byte) error {
// Prepare the payload based on record type
var payload []byte
Expand Down

0 comments on commit 392174a

Please sign in to comment.