rocksdb/utilities/blob_db
Yi Wu 5e9e5a4702 Blob DB: Fix race condition between flush and write
Summary:
A race condition will happen when:
* a user thread writes a value, but it hits the write stop condition because there are too many un-flushed memtables, while holding blob_db_impl.write_mutex_.
* Flush is triggered and call flush begin listener and try to acquire blob_db_impl.write_mutex_.

Fixing it.
Closes https://github.com/facebook/rocksdb/pull/3149

Differential Revision: D6279805

Pulled By: yiwu-arbug

fbshipit-source-id: 0e3c58afb78795ebe3360a2c69e05651e3908c40
2017-11-08 19:42:22 -08:00
..
blob_compaction_filter.h Blob DB: Add compaction filter to remove expired blob index entries 2017-11-02 17:27:38 -07:00
blob_db_impl.cc Blob DB: Fix race condition between flush and write 2017-11-08 19:42:22 -08:00
blob_db_impl.h Blob DB: fix snapshot handling 2017-11-02 15:58:27 -07:00
blob_db_iterator.h Blob DB: Store blob index as kTypeBlobIndex in base db 2017-10-17 17:28:11 -07:00
blob_db_test.cc Blob DB: use compression in file header instead of global options 2017-11-07 17:42:17 -08:00
blob_db.cc Blob DB: Add compaction filter to remove expired blob index entries 2017-11-02 17:27:38 -07:00
blob_db.h Blob DB: option to enable garbage collection 2017-11-02 15:58:27 -07: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 Blob DB: use compression in file header instead of global options 2017-11-07 17:42:17 -08:00
blob_file.h Blob DB: Fix release build 2017-11-08 13:14:20 -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: Initialize all fields in Blob Header, Footer and Record structs 2017-10-31 16:42:08 -07:00
blob_log_reader.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_reader.h Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_writer.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_writer.h Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
ttl_extractor.cc Move blob_db/ttl_extractor.h into blob_db/blob_db.h 2017-07-28 14:28:21 -07:00