From 6f051e0c71d18dac88b8d96b8c534b6711a3a9f8 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Fri, 11 Aug 2017 12:18:58 -0700 Subject: [PATCH] fix corruption_test valgrind Summary: Closes https://github.com/facebook/rocksdb/pull/2724 Differential Revision: D5613416 Pulled By: ajkr fbshipit-source-id: ed55fb66ab1b41dfdfe765fe3264a1c87a8acb00 --- db/corruption_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/corruption_test.cc b/db/corruption_test.cc index 608c88d59..56e157832 100644 --- a/db/corruption_test.cc +++ b/db/corruption_test.cc @@ -332,6 +332,7 @@ TEST_F(CorruptionTest, TableFileIndexData) { // corrupt an index block of an entire file Corrupt(kTableFile, -2000, 500); Reopen(); + dbi = reinterpret_cast(db_); // one full file should be readable, since only one was corrupted // the other file should be fully non-readable, since index was corrupted Check(5000, 5000);