• I
    [CF] Fix CF bugs in WriteBatch · f9b2f0ad
    Igor Canadi 提交于
    Summary:
    This diff fixes two bugs:
    * Increase sequence number even if WriteBatch fails. This is important because WriteBatches in WAL logs have implictly increasing sequence number, even if one update in a write batch fails. This caused some writes to get lost in my CF stress testing
    * Tolerate 'invalid column family' errors on recovery. When a column family is dropped, processing WAL logs can have some WriteBatches that still refer to the dropped column family. In recovery environment, we want to ignore those errors. In client's Write() code path, however, we want to return the failure to the client if he's trying to add data to invalid column family.
    
    Test Plan: db_stress's verification works now
    
    Reviewers: dhruba, haobo
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D16533
    f9b2f0ad
db_impl.cc 138.7 KB