[RocksDB] Fix CorruptionTest
Summary: Overriding block_size_deviation to zero, so that CorruptionTest can pass. Test Plan: make check Reviewers: dhruba Reviewed By: dhruba Differential Revision: https://reviews.facebook.net/D10977
This commit is contained in:
parent
4c47d8f345
commit
fb684da082
@ -40,6 +40,7 @@ class CorruptionTest {
|
|||||||
|
|
||||||
db_ = nullptr;
|
db_ = nullptr;
|
||||||
options_.create_if_missing = true;
|
options_.create_if_missing = true;
|
||||||
|
options_.block_size_deviation = 0; // make unit test pass for now
|
||||||
Reopen();
|
Reopen();
|
||||||
options_.create_if_missing = false;
|
options_.create_if_missing = false;
|
||||||
}
|
}
|
||||||
@ -55,6 +56,7 @@ class CorruptionTest {
|
|||||||
Options opt = (options ? *options : options_);
|
Options opt = (options ? *options : options_);
|
||||||
opt.env = &env_;
|
opt.env = &env_;
|
||||||
opt.block_cache = tiny_cache_;
|
opt.block_cache = tiny_cache_;
|
||||||
|
opt.block_size_deviation = 0;
|
||||||
return DB::Open(opt, dbname_, &db_);
|
return DB::Open(opt, dbname_, &db_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user