OpenAtomFoundation / pikiwidb

a high-performance, large-capacity, multi-tenant, data-persistent, strong data consistency based on raft, Redis-compatible elastic KV data storage system based on RocksDB
BSD 3-Clause "New" or "Revised" License
194 stars 63 forks source link

fix: get log truncate index in storage #303

Closed dingxiaoshuai123 closed 3 months ago

dingxiaoshuai123 commented 3 months ago

每一个 rocksdb 依然维护自己的队列信息记录自己的 seq 和 全局的 logindex 的对应关系。 每一个 rocksdb 的flush 和 apply 点位维护在 storag中, rocksdb 中仅持有对应的指针。 通过 storage 获取到所有 rocksdb 中最小的 flush 点位,作为日志的截断点。

Tangruilin commented 3 months ago

这个 PR 的目的是什么

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.


What is the purpose of this PR?