From 2b019a1512441b9e1ddad7b9336b9c8955dc27c0 Mon Sep 17 00:00:00 2001 From: krad Date: Wed, 8 Apr 2015 14:35:43 -0700 Subject: [PATCH] Enabling checksum in repair db as it should have been. Summary: I think the checksum was turned off by mistake. Test Plan: Run make check Reviewers: igor sdong chip CC: Task ID: Blame Rev: --- db/repair.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/repair.cc b/db/repair.cc index 05d91aea0..6eea85a56 100644 --- a/db/repair.cc +++ b/db/repair.cc @@ -217,7 +217,7 @@ class Repairer { // corruptions cause entire commits to be skipped instead of // propagating bad information (like overly large sequence // numbers). - log::Reader reader(std::move(lfile), &reporter, false/*do not checksum*/, + log::Reader reader(std::move(lfile), &reporter, true /*enable checksum*/, 0/*initial_offset*/); // Read all the records and add to a memtable