From fb684da0825c823e4d59127de3aee810831db812 Mon Sep 17 00:00:00 2001 From: Haobo Xu Date: Tue, 28 May 2013 11:38:47 -0700 Subject: [PATCH] [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 --- db/corruption_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/corruption_test.cc b/db/corruption_test.cc index 3be2b6ab38..7d9b4b068c 100644 --- a/db/corruption_test.cc +++ b/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_); }