From 655ef7d77ff911a0c2206e590aed64e22fb58274 Mon Sep 17 00:00:00 2001 From: Maysam Yabandeh Date: Fri, 7 Sep 2018 07:51:26 -0700 Subject: [PATCH] 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 --- include/rocksdb/table.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/rocksdb/table.h b/include/rocksdb/table.h index 1be2aebe0..a177d1c7a 100644 --- a/include/rocksdb/table.h +++ b/include/rocksdb/table.h @@ -239,6 +239,12 @@ struct BlockBasedTableOptions { // version 5.15, you should probably use this. // This option only affects newly written tables. When reading existing // 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; // Store index blocks on disk in compressed format. Changing this option to