tikv / raft-engine

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

Refactor evict to avoid reading pipelog #49

Closed Little-Wallace closed 4 years ago

Little-Wallace commented 4 years ago

Signed-off-by: Little-Wallace bupt2013211450@gmail.com

I collect index of entries when writing it to PipeLog so that we can only compact cache with these index and do not need to read LogBatch from PipeLog any more.

Little-Wallace commented 4 years ago

This refactor may cause too large memory use for cache. We will discuss it in future.