Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vfs/lfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func (lfs *LogStructuredFS) RunCheckpoint(second uint32) {
}

// 创建一个 buf 缓冲区方便服用内存
buf := new(bytes.Buffer)
buf := bytes.NewBuffer(make([]byte, 0, 48))

// 遍历 indexs 确保锁的粒度更小
for _, imap := range lfs.indexs {
Expand Down
Loading