File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Rocksdb Change Log
2
2
3
+ ## Unreleased
4
+ * By default, checksums are verified on every read from database
5
+
6
+
3
7
## 2.7.0 (01/28/2014)
4
8
5
9
### Public API changes
Original file line number Diff line number Diff line change @@ -95,7 +95,12 @@ class CorruptionTest {
95
95
int bad_values = 0 ;
96
96
int correct = 0 ;
97
97
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 ));
99
104
for (iter->SeekToFirst (); iter->Valid (); iter->Next ()) {
100
105
uint64_t key;
101
106
Slice in (iter->key ());
You can’t perform that action at this time.
0 commit comments