• S
    Introduce options.check_flush_compaction_key_order (#7467) · 75081755
    sdong 提交于
    Summary:
    Introduce an new option options.check_flush_compaction_key_order, by default set to true, which checks key order of flush and compaction, and fail the operation if the order is violated.
    Also did minor refactor hash checking code, which consolidates the hashing logic to a vlidation class, where the key ordering logic is added.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/7467
    
    Test Plan: Add unit tests to validate the check can catch reordering in flush and compaction, and can be properly disabled.
    
    Reviewed By: riversand963
    
    Differential Revision: D24010683
    
    fbshipit-source-id: 8dd6292d2cda8006054e9ded7cfa4bf405f0527c
    75081755
db_test.cc 225.9 KB