• R
    Fix 2PC Recovery SeqId Miscount · 1ca5f6d1
    Reid Horuff 提交于
    Summary:
    Originally sequence ids were calculated, in recovery, based off of the first seqid found if the first log recovered. The working seqid was then incremented from that value based on every insertion that took place. This was faulty because of the potential for missing log files or inserts that skipped the WAL. The current recovery scheme grabs sequence from current recovering batch and increments using memtableinserter to track how many actual inserts take place. This works for 2PC batches as well scenarios where some logs are missing or inserts that skip the WAL.
    Closes https://github.com/facebook/rocksdb/pull/1486
    
    Differential Revision: D4156064
    
    Pulled By: reidHoruff
    
    fbshipit-source-id: a6da8d9
    1ca5f6d1
db_wal_test.cc 41.8 KB