From 392174a72fb86d5030a7e212a1a731ba611fef0a Mon Sep 17 00:00:00 2001 From: sjcsjc123 <1401189096@qq.com> Date: Sat, 19 Aug 2023 02:07:56 +0800 Subject: [PATCH] fix ci bug --- db/memory/wal.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/db/memory/wal.go b/db/memory/wal.go index 33143dd..f41f9f3 100644 --- a/db/memory/wal.go +++ b/db/memory/wal.go @@ -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