• M
    Making the transaction log iterator more robust · f837f5b1
    Mayank Agarwal 提交于
    Summary:
    strict essentially means that we MUST find the startsequence. Thus we should return if starteSequence is not found in the first file in case strict is set. This will take care of ending the iterator in case of permanent gaps due to corruptions in the log files
    Also created NextImpl function that will have internal variable to distinguish whether Next is being called from StartSequence or by application.
    Set NotFoudn::gaps status to give an indication of gaps happeneing.
    Polished the inline documentation at various places
    
    Test Plan:
    * db_repl_stress test
    * db_test relating to transaction log iterator
    * fbcode/wormhole/rocksdb/rocks_log_iterator
    * sigma production machine sigmafio032.prn1
    
    Reviewers: dhruba
    
    Reviewed By: dhruba
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D13689
    f837f5b1
db_impl.h 16.2 KB