|
|
|
@ -70,12 +70,9 @@ |
|
|
|
|
|
|
|
|
|
namespace ROCKSDB_NAMESPACE { |
|
|
|
|
|
|
|
|
|
// Note that whole DBTest and its child classes disable fsync on files
|
|
|
|
|
// and directories for speed.
|
|
|
|
|
// If fsync needs to be covered in a test, put it in other places.
|
|
|
|
|
class DBTest : public DBTestBase { |
|
|
|
|
public: |
|
|
|
|
DBTest() : DBTestBase("/db_test", /*env_do_fsync=*/false) {} |
|
|
|
|
DBTest() : DBTestBase("/db_test") {} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
class DBTestWithParam |
|
|
|
@ -1793,6 +1790,7 @@ TEST_F(DBTest, Snapshot) { |
|
|
|
|
TEST_F(DBTest, HiddenValuesAreRemoved) { |
|
|
|
|
anon::OptionsOverride options_override; |
|
|
|
|
options_override.skip_policy = kSkipNoSnapshot; |
|
|
|
|
env_->skip_fsync_ = true; |
|
|
|
|
do { |
|
|
|
|
Options options = CurrentOptions(options_override); |
|
|
|
|
CreateAndReopenWithCF({"pikachu"}, options); |
|
|
|
@ -3997,6 +3995,7 @@ TEST_F(DBTest, DynamicMemtableOptions) { |
|
|
|
|
const uint64_t k128KB = 1 << 17; |
|
|
|
|
const uint64_t k5KB = 5 * 1024; |
|
|
|
|
Options options; |
|
|
|
|
env_->skip_fsync_ = true; |
|
|
|
|
options.env = env_; |
|
|
|
|
options.create_if_missing = true; |
|
|
|
|
options.compression = kNoCompression; |
|
|
|
@ -5143,6 +5142,7 @@ TEST_F(DBTest, DynamicUniversalCompactionOptions) { |
|
|
|
|
|
|
|
|
|
TEST_F(DBTest, FileCreationRandomFailure) { |
|
|
|
|
Options options; |
|
|
|
|
env_->skip_fsync_ = true; |
|
|
|
|
options.env = env_; |
|
|
|
|
options.create_if_missing = true; |
|
|
|
|
options.write_buffer_size = 100000; // Small write buffer
|
|
|
|
@ -5502,6 +5502,7 @@ TEST_F(DBTest, MergeTestTime) { |
|
|
|
|
#ifndef ROCKSDB_LITE |
|
|
|
|
TEST_P(DBTestWithParam, MergeCompactionTimeTest) { |
|
|
|
|
SetPerfLevel(kEnableTime); |
|
|
|
|
env_->skip_fsync_ = true; |
|
|
|
|
Options options = CurrentOptions(); |
|
|
|
|
options.compaction_filter_factory = std::make_shared<KeepFilterFactory>(); |
|
|
|
|
options.statistics = ROCKSDB_NAMESPACE::CreateDBStatistics(); |
|
|
|
|