rocksdb/utilities/blob_db
Islam AbdelRahman b88f8e87c5 Support SST files with Global sequence numbers [reland]
Summary:
reland https://reviews.facebook.net/D62523

- Update SstFileWriter to include a property for a global sequence number in the SST file `rocksdb.external_sst_file.global_seqno`
- Update TableProperties to be aware of the offset of each property in the file
- Update BlockBasedTableReader and Block to be able to honor the sequence number in `rocksdb.external_sst_file.global_seqno` property and use it to overwrite all sequence number in the file

Something worth mentioning is that we don't update the seqno in the index block since and when doing a binary search, the reason for that is that it's guaranteed that SST files with global seqno will have only one user_key and each key will have seqno=0 encoded in it, This mean that this key is greater than any other key with seqno> 0. That mean that we can actually keep the current logic for these blocks

Test Plan: unit tests

Reviewers: sdong, yhchiang

Subscribers: andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D65211
2016-10-18 16:59:37 -07:00
..
blob_db_test.cc [Proof-Of-Concept] RocksDB Blob Storage with a blob log file. 2016-08-10 17:05:17 -07:00
blob_db.cc Support SST files with Global sequence numbers [reland] 2016-10-18 16:59:37 -07:00
blob_db.h [Proof-Of-Concept] RocksDB Blob Storage with a blob log file. 2016-08-10 17:05:17 -07:00