weixin_39606019 2020-11-29 17:10 采纳率: 0%
浏览 0

db: fix WAL replay in read-only mode

The addition of memTable.logSeqNum broke WAL replay in read-only mode because we were initializing memTable.logSeqNum too early and setting it to the visible sequence number rather than the first sequence number in the WAL being replayed. This would result in an error during Open that looked like:


   pebble: batch seqnum 2 is less than memtable creation seqnum 3

该提问来源于开源项目:cockroachdb/pebble

  • 写回答

6条回答 默认 最新

  • weixin_39606019 2020-11-29 17:10
    关注

    This change is Reviewable

    评论

报告相同问题?