Revision 0d4a2b733070a1bd52f981313f9e17f126701407 authored by Yi Wu on 04 August 2017, 20:09:56 UTC, committed by Facebook Github Bot on 04 August 2017, 20:12:07 UTC
Summary:
The FsyncFiles background job call Fsync() periodically for blob files. However it can access WritableFileWriter concurrently with a Put() or Write(). And WritableFileWriter does not support concurrent access. It will lead to WritableFileWriter buffer being flush with same content twice, and blob file end up corrupted. Fixing by simply let FsyncFiles hold write_mutex_.
Closes https://github.com/facebook/rocksdb/pull/2685

Differential Revision: D5561908

Pulled By: yiwu-arbug

fbshipit-source-id: f0bb5bcab0e05694e053b8c49eab43640721e872
1 parent 627c9f1
History
File Mode Size
utilities
advanced_options.h -rw-r--r-- 24.4 KB
c.h -rw-r--r-- 65.6 KB
cache.h -rw-r--r-- 8.3 KB
cleanable.h -rw-r--r-- 2.4 KB
compaction_filter.h -rw-r--r-- 9.0 KB
compaction_job_stats.h -rw-r--r-- 3.0 KB
comparator.h -rw-r--r-- 3.2 KB
convenience.h -rw-r--r-- 15.1 KB
db.h -rw-r--r-- 51.5 KB
db_bench_tool.h -rw-r--r-- 361 bytes
db_dump_tool.h -rw-r--r-- 1.2 KB
env.h -rw-r--r-- 43.2 KB
env_encryption.h -rw-r--r-- 7.5 KB
experimental.h -rw-r--r-- 1.1 KB
filter_policy.h -rw-r--r-- 5.6 KB
flush_block_policy.h -rw-r--r-- 1.9 KB
iostats_context.h -rw-r--r-- 1.4 KB
iterator.h -rw-r--r-- 4.5 KB
ldb_tool.h -rw-r--r-- 1.2 KB
listener.h -rw-r--r-- 14.8 KB
memtablerep.h -rw-r--r-- 14.8 KB
merge_operator.h -rw-r--r-- 10.0 KB
metadata.h -rw-r--r-- 3.2 KB
options.h -rw-r--r-- 48.9 KB
perf_context.h -rw-r--r-- 6.8 KB
perf_level.h -rw-r--r-- 1.2 KB
persistent_cache.h -rw-r--r-- 2.3 KB
rate_limiter.h -rw-r--r-- 5.4 KB
slice.h -rw-r--r-- 7.1 KB
slice_transform.h -rw-r--r-- 4.2 KB
snapshot.h -rw-r--r-- 1.2 KB
sst_dump_tool.h -rw-r--r-- 433 bytes
sst_file_manager.h -rw-r--r-- 3.3 KB
sst_file_writer.h -rw-r--r-- 4.4 KB
statistics.h -rw-r--r-- 19.3 KB
status.h -rw-r--r-- 10.1 KB
table.h -rw-r--r-- 22.6 KB
table_properties.h -rw-r--r-- 8.2 KB
thread_status.h -rw-r--r-- 6.2 KB
threadpool.h -rw-r--r-- 2.0 KB
transaction_log.h -rw-r--r-- 3.9 KB
types.h -rw-r--r-- 579 bytes
universal_compaction.h -rw-r--r-- 3.5 KB
version.h -rw-r--r-- 641 bytes
wal_filter.h -rw-r--r-- 4.4 KB
write_batch.h -rw-r--r-- 12.2 KB
write_batch_base.h -rw-r--r-- 5.3 KB
write_buffer_manager.h -rw-r--r-- 3.2 KB

back to top