tikv / raft-engine

A persistent storage engine for Multi-Raft log
Apache License 2.0
565 stars 88 forks source link

avoid calling fsync() from PipeLog #121

Closed tabokie closed 3 years ago

tabokie commented 3 years ago

Signed-off-by: tabokie xy.tao@outlook.com

Previously fsync() will be called within pipe log when buffered data exceeds bytes_per_sync. Moving this logic to engine side so that one write group calls fsync() at most once.