• Z
    Store DB identity and DB session ID in SST files (#6983) · 94d04529
    Zitan Chen 提交于
    Summary:
    `db_id` and `db_session_id` are now part of the table properties for all formats and stored in SST files. This adds about 99 bytes to each new SST file.
    
    The `TablePropertiesNames` for these two identifiers are `rocksdb.creating.db.identity` and `rocksdb.creating.session.identity`.
    
    In addition, SST files generated from SstFileWriter and Repairer have DB identity “SST Writer” and “DB Repairer”, respectively. Their DB session IDs are generated in the same way as `DB::GetDbSessionId`.
    
    A table property test is added.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/6983
    
    Test Plan: make check and some manual tests.
    
    Reviewed By: zhichao-cao
    
    Differential Revision: D22048826
    
    Pulled By: gg814
    
    fbshipit-source-id: afdf8c11424a6f509b5c0b06dafad584a80103c9
    94d04529
builder.h 4.0 KB