Fix crash_test crash (#11554)

Summary:
`table_properties_` is not guaranteed to be available.

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

Reviewed By: akankshamahajan15

Differential Revision: D46944170

Pulled By: jowlyzhang

fbshipit-source-id: 609d598e75b417471c9cd964cc316453776a2135
oxigraph-main
Yu Zhang 2 years ago committed by Facebook GitHub Bot
parent 05a1d52e77
commit fb5748decf
  1. 5
      table/sst_file_dumper.cc

@ -174,7 +174,10 @@ Status SstFileDumper::NewTableReader(
nullptr /* block_cache_tracer */, 0 /* max_file_size_for_l0_meta_pin */, nullptr /* block_cache_tracer */, 0 /* max_file_size_for_l0_meta_pin */,
"" /* cur_db_session_id */, 0 /* cur_file_num */, {} /* unique_id */, "" /* cur_db_session_id */, 0 /* cur_file_num */, {} /* unique_id */,
0 /* largest_seqno */, 0 /* tail_size */, 0 /* largest_seqno */, 0 /* tail_size */,
static_cast<bool>(table_properties_->user_defined_timestamps_persisted)); table_properties_ == nullptr
? true
: static_cast<bool>(
table_properties_->user_defined_timestamps_persisted));
// Allow open file with global sequence number for backward compatibility. // Allow open file with global sequence number for backward compatibility.
t_opt.largest_seqno = kMaxSequenceNumber; t_opt.largest_seqno = kMaxSequenceNumber;

Loading…
Cancel
Save