Skip to content

Commit fe9bd30

Browse files
committed
Merge branch 'master' into columnfamilies
2 parents f748912 + 30a7006 commit fe9bd30

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

HISTORY.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Rocksdb Change Log
22

3+
## Unreleased
4+
* By default, checksums are verified on every read from database
5+
6+
37
## 2.7.0 (01/28/2014)
48

59
### Public API changes

db/corruption_test.cc

+6-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ class CorruptionTest {
9595
int bad_values = 0;
9696
int correct = 0;
9797
std::string value_space;
98-
Iterator* iter = db_->NewIterator(ReadOptions());
98+
// Do not verify checksums. If we verify checksums then the
99+
// db itself will raise errors because data is corrupted.
100+
// Instead, we want the reads to be successful and this test
101+
// will detect whether the appropriate corruptions have
102+
// occured.
103+
Iterator* iter = db_->NewIterator(ReadOptions(false, true));
99104
for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
100105
uint64_t key;
101106
Slice in(iter->key());

0 commit comments

Comments
 (0)