rocksdb/db/db_impl
Changyu Bi 37f490834d Specify largest_seqno in VerifyChecksum (#9919)
Summary:
`VerifyChecksum()` does not specify `largest_seqno` when creating a `TableReader`. As a result, the `TableReader` uses the `TableReaderOptions` default value (0) for `largest_seqno`. This causes the following error when the file has a nonzero global seqno in its properties:
```
Corruption: An external sst file with version 2 have global seqno property with value , while largest seqno in the file is 0
```
This PR fixes this by specifying `largest_seqno` in `VerifyChecksumInternal` with `largest_seqno` from the file metadata.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/9919

Test Plan: `make check`

Reviewed By: ajkr

Differential Revision: D36028824

Pulled By: cbi42

fbshipit-source-id: 428d028a79386f46ef97bb6b6051dc76c83e1f2b
2022-05-02 10:22:08 -07:00
..
compacted_db_impl.cc
compacted_db_impl.h
db_impl.cc Specify largest_seqno in VerifyChecksum (#9919) 2022-05-02 10:22:08 -07:00
db_impl.h Revert open logic changes in #9634 (#9906) 2022-04-26 14:46:53 -07:00
db_impl_compaction_flush.cc
db_impl_debug.cc
db_impl_experimental.cc
db_impl_files.cc Revert open logic changes in #9634 (#9906) 2022-04-26 14:46:53 -07:00
db_impl_open.cc Update protection info on recovered logs data (#9875) 2022-04-28 14:42:00 -07:00
db_impl_readonly.cc
db_impl_readonly.h
db_impl_secondary.cc Revert open logic changes in #9634 (#9906) 2022-04-26 14:46:53 -07:00
db_impl_secondary.h Revert open logic changes in #9634 (#9906) 2022-04-26 14:46:53 -07:00
db_impl_write.cc