• C
    Track WAL in MANIFEST: persist WALs to and recover WALs from MANIFEST (#7256) · 1b224324
    Cheng Chang 提交于
    Summary:
    This PR makes it able to `LogAndApply` `VersionEdit`s related to WALs, and also be able to `Recover` from MANIFEST with WAL related `VersionEdit`s.
    
    The `VersionEdit`s related to WAL are treated similarly as those related to column family operations, they are not applied to versions, but can be in a commit group. Mixing WAL related `VersionEdit`s with other types of edits will make logic in `ProcessManifestWrite` more complicated, so `VersionEdit`s related to WAL can either be WAL additions or deletions, like column family add and drop.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/7256
    
    Test Plan: a set of unit tests are added in `version_set_test.cc`
    
    Reviewed By: riversand963
    
    Differential Revision: D23123238
    
    Pulled By: cheng-chang
    
    fbshipit-source-id: 246be2ed4744fd03fa2738aba408aaa611d0379c
    1b224324
db_impl_open.cc 68.5 KB