rocksdb/utilities/blob_db
Yi Wu 237b292515 BlobDB: Remove the need to get sequence number per write
Summary:
Previously we store sequence number range of each blob files, and use the sequence number range to check if the file can be possibly visible by a snapshot. But it adds complexity to the code, since the sequence number is only available after a write. (The current implementation get sequence number by calling GetLatestSequenceNumber(), which is wrong.) With the patch, we are not storing sequence number range, and check if snapshot_sequence < obsolete_sequence to decide if the file is visible by a snapshot (previously we check if first_sequence <= snapshot_sequence < obsolete_sequence).
Closes https://github.com/facebook/rocksdb/pull/3274

Differential Revision: D6571497

Pulled By: yiwu-arbug

fbshipit-source-id: ca06479dc1fcd8782f6525b62b7762cd47d61909
2017-12-15 13:27:30 -08:00
..
blob_compaction_filter.h Blob DB: Add statistics 2017-11-28 11:58:49 -08:00
blob_db_impl.cc BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_db_impl.h BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_db_iterator.h Blob DB: Add statistics 2017-11-28 11:58:49 -08:00
blob_db_test.cc BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_db.cc BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
blob_db.h BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
blob_dump_tool.cc BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_dump_tool.h Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_file.cc BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_file.h BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_index.h Blob DB: Inline small values in base DB 2017-10-26 12:30:54 -07:00
blob_log_format.cc BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_log_format.h BlobDB: Remove the need to get sequence number per write 2017-12-15 13:27:30 -08:00
blob_log_reader.cc Blob DB: Add statistics 2017-11-28 11:58:49 -08:00
blob_log_reader.h Blob DB: Add statistics 2017-11-28 11:58:49 -08:00
blob_log_writer.cc BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
blob_log_writer.h BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
ttl_extractor.cc Move blob_db/ttl_extractor.h into blob_db/blob_db.h 2017-07-28 14:28:21 -07:00