Add missing index type to C-API

Summary:
When the `TwoLevelIndexSearch` was introduced, it wasn't added to
the C-API.
Closes https://github.com/facebook/rocksdb/pull/2395

Differential Revision: D5165127

Pulled By: maysamyabandeh

fbshipit-source-id: d077f16ab5646c18158d8202a33b0fd076c6c8ad
This commit is contained in:
Volker Mische 2017-06-01 11:26:01 -07:00 committed by Facebook Github Bot
parent 292edfd516
commit bbaba51bbf
1 changed files with 1 additions and 0 deletions

View File

@ -638,6 +638,7 @@ extern ROCKSDB_LIBRARY_API void rocksdb_block_based_options_set_format_version(
enum { enum {
rocksdb_block_based_table_index_type_binary_search = 0, rocksdb_block_based_table_index_type_binary_search = 0,
rocksdb_block_based_table_index_type_hash_search = 1, rocksdb_block_based_table_index_type_hash_search = 1,
rocksdb_block_based_table_index_type_two_level_index_search = 2,
}; };
extern ROCKSDB_LIBRARY_API void rocksdb_block_based_options_set_index_type( extern ROCKSDB_LIBRARY_API void rocksdb_block_based_options_set_index_type(
rocksdb_block_based_table_options_t*, int); // uses one of the above enums rocksdb_block_based_table_options_t*, int); // uses one of the above enums