|
9 | 9 | namespace rocksdb {
|
10 | 10 |
|
11 | 11 | TransactionLogIteratorImpl::TransactionLogIteratorImpl(
|
12 |
| - const std::string& dir, |
13 |
| - const Options* options, |
14 |
| - const EnvOptions& soptions, |
15 |
| - const SequenceNumber seq, |
16 |
| - std::unique_ptr<VectorLogPtr> files, |
17 |
| - DBImpl const * const dbimpl) : |
18 |
| - dir_(dir), |
19 |
| - options_(options), |
20 |
| - soptions_(soptions), |
21 |
| - startingSequenceNumber_(seq), |
22 |
| - files_(std::move(files)), |
23 |
| - started_(false), |
24 |
| - isValid_(false), |
25 |
| - currentFileIndex_(0), |
26 |
| - currentBatchSeq_(0), |
27 |
| - currentLastSeq_(0), |
28 |
| - dbimpl_(dbimpl) { |
| 12 | + const std::string& dir, const Options* options, |
| 13 | + const TransactionLogIterator::ReadOptions& read_options, |
| 14 | + const EnvOptions& soptions, const SequenceNumber seq, |
| 15 | + std::unique_ptr<VectorLogPtr> files, DBImpl const* const dbimpl) |
| 16 | + : dir_(dir), |
| 17 | + options_(options), |
| 18 | + read_options_(read_options), |
| 19 | + soptions_(soptions), |
| 20 | + startingSequenceNumber_(seq), |
| 21 | + files_(std::move(files)), |
| 22 | + started_(false), |
| 23 | + isValid_(false), |
| 24 | + currentFileIndex_(0), |
| 25 | + currentBatchSeq_(0), |
| 26 | + currentLastSeq_(0), |
| 27 | + dbimpl_(dbimpl) { |
29 | 28 | assert(files_ != nullptr);
|
30 | 29 | assert(dbimpl_ != nullptr);
|
31 | 30 |
|
@@ -253,9 +252,8 @@ Status TransactionLogIteratorImpl::OpenLogReader(const LogFile* logFile) {
|
253 | 252 | return status;
|
254 | 253 | }
|
255 | 254 | assert(file);
|
256 |
| - currentLogReader_.reset( |
257 |
| - new log::Reader(std::move(file), &reporter_, true, 0) |
258 |
| - ); |
| 255 | + currentLogReader_.reset(new log::Reader(std::move(file), &reporter_, |
| 256 | + read_options_.verify_checksums_, 0)); |
259 | 257 | return Status::OK();
|
260 | 258 | }
|
261 | 259 | } // namespace rocksdb
|
0 commit comments