rocksdb/db/db_impl
Jay Zhuang 54d73d6429 Fix DeleteFilesInRange may cause inconsistent compaction error (#8434)
Summary:
`DeleteFilesInRange()` marks deleting files to `being_compacted`
before deleting, which may cause ongoing compactions report corruption
exception or ASSERT for debug build.

Adding the missing `ComputeCompactionScore()` when `being_compacted` is set.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8434

Test Plan: Unittest

Reviewed By: ajkr

Differential Revision: D29276127

Pulled By: jay-zhuang

fbshipit-source-id: f5b223e3c1fc6d821e100e3f3442bc70c1d50cf7
2021-06-22 09:17:37 -07:00
..
compacted_db_impl.cc
compacted_db_impl.h
db_impl.cc Fix DeleteFilesInRange may cause inconsistent compaction error (#8434) 2021-06-22 09:17:37 -07:00
db_impl.h
db_impl_compaction_flush.cc Rename ImmutableOptions variables (#8409) 2021-06-16 16:51:38 -07:00
db_impl_debug.cc
db_impl_experimental.cc
db_impl_files.cc
db_impl_open.cc Don't log a warning if file system doesn't support ReopenWritableFile() (#8414) 2021-06-17 12:05:40 -07:00
db_impl_readonly.cc
db_impl_readonly.h
db_impl_secondary.cc
db_impl_secondary.h
db_impl_write.cc