rocksdb/utilities/blob_db
Yi Wu 250a51a3f9 BlobDB: refactor DB open logic
Summary:
Refactor BlobDB open logic. List of changes:

Major:
* On reopen, mark blob files found as immutable, do not use them for writing new keys.
* Not to scan the whole file to find file footer. Instead just seek to the end of the file and try to read footer.

Minor:
* Move most of the real logic from blob_db.cc to blob_db_impl.cc.
* Not to hold shared_ptr of event listeners in global maps in blob_db.cc
* Some changes to BlobFile interface.
* Improve logging and error handling.
Closes https://github.com/facebook/rocksdb/pull/3246

Differential Revision: D6526147

Pulled By: yiwu-arbug

fbshipit-source-id: 9dc4cdd63359a2f9b696af817086949da8d06952
2017-12-11 12:12:38 -08:00
..
blob_compaction_filter.h Blob DB: Add statistics 2017-11-28 11:58:49 -08:00
blob_db_impl.cc BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
blob_db_impl.h BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
blob_db_iterator.h Blob DB: Add statistics 2017-11-28 11:58:49 -08:00
blob_db_test.cc Blob DB: Add statistics 2017-11-28 11:58:49 -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 Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_dump_tool.h Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_file.cc BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00
blob_file.h BlobDB: refactor DB open logic 2017-12-11 12:12:38 -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 Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_format.h Blob DB: Add statistics 2017-11-28 11:58:49 -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