fix corruption_test valgrind

Summary: Closes https://github.com/facebook/rocksdb/pull/2724

Differential Revision: D5613416

Pulled By: ajkr

fbshipit-source-id: ed55fb66ab1b41dfdfe765fe3264a1c87a8acb00
This commit is contained in:
Andrew Kryczka 2017-08-11 12:18:58 -07:00 committed by Facebook Github Bot
parent ac098a4626
commit 6f051e0c71
1 changed files with 1 additions and 0 deletions

View File

@ -332,6 +332,7 @@ TEST_F(CorruptionTest, TableFileIndexData) {
// corrupt an index block of an entire file
Corrupt(kTableFile, -2000, 500);
Reopen();
dbi = reinterpret_cast<DBImpl*>(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);