turbo-persistence: validate sst_inspect block reads with BlockOffsets
Make `BlockOffsets` public so `sst_inspect` reads SST files with the same
block-directory validation as the database, instead of unchecked offset
arithmetic and slicing. Reject zero-block files and decompressed-length
mismatches with errors instead of panicking. Add end-to-end open tests
for corrupt files through both readers in every access mode.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment