[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
main
Haobo Xu 12 years ago
parent 4c47d8f345
commit fb684da082
  1. 2
      db/corruption_test.cc

@ -40,6 +40,7 @@ class CorruptionTest {
db_ = nullptr;
options_.create_if_missing = true;
options_.block_size_deviation = 0; // make unit test pass for now
Reopen();
options_.create_if_missing = false;
}
@ -55,6 +56,7 @@ class CorruptionTest {
Options opt = (options ? *options : options_);
opt.env = &env_;
opt.block_cache = tiny_cache_;
opt.block_size_deviation = 0;
return DB::Open(opt, dbname_, &db_);
}

Loading…
Cancel
Save