Inline doc for format_version 4 (#4350)

Summary:
Fixes #4337
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4350

Differential Revision: D9700871

Pulled By: maysamyabandeh

fbshipit-source-id: fe1e07803783f34588dc14aba66d51117ca4a180
main
Maysam Yabandeh 6 years ago committed by Facebook Github Bot
parent ced618cf39
commit 655ef7d77f
  1. 6
      include/rocksdb/table.h

@ -239,6 +239,12 @@ struct BlockBasedTableOptions {
// version 5.15, you should probably use this. // version 5.15, you should probably use this.
// This option only affects newly written tables. When reading existing // This option only affects newly written tables. When reading existing
// tables, the information about version is read from the footer. // tables, the information about version is read from the footer.
// 4 -- Can be read by RocksDB's versions since 5.16. Changes the way we
// encode the values in index blocks. If you don't plan to run RocksDB before
// version 5.16 and you are using index_block_restart_interval > 1, you should
// probably use this as it would reduce the index size.
// This option only affects newly written tables. When reading existing
// tables, the information about version is read from the footer.
uint32_t format_version = 2; uint32_t format_version = 2;
// Store index blocks on disk in compressed format. Changing this option to // Store index blocks on disk in compressed format. Changing this option to

Loading…
Cancel
Save