@@ -254,7 +254,7 @@ extern C_ROCKSDB_LIBRARY_API crocksdb_t* crocksdb_open_column_families_with_ttl(
254254 const crocksdb_options_t * options , const char * name , int num_column_families ,
255255 const char * * column_family_names ,
256256 const crocksdb_options_t * * column_family_options ,
257- const int32_t * ttl_array , bool read_only ,
257+ const int32_t * ttl_array , unsigned char read_only ,
258258 crocksdb_column_family_handle_t * * column_family_handles ,
259259 char * * errptr );
260260
@@ -402,7 +402,7 @@ extern C_ROCKSDB_LIBRARY_API crocksdb_map_property_t* crocksdb_create_map_proper
402402
403403extern C_ROCKSDB_LIBRARY_API void crocksdb_destroy_map_property (crocksdb_map_property_t * info );
404404
405- extern C_ROCKSDB_LIBRARY_API bool crocksdb_get_map_property_cf (
405+ extern C_ROCKSDB_LIBRARY_API unsigned char crocksdb_get_map_property_cf (
406406 crocksdb_t * db , crocksdb_column_family_handle_t * column_family ,
407407 const char * property , crocksdb_map_property_t * data );
408408
@@ -711,13 +711,14 @@ extern C_ROCKSDB_LIBRARY_API const char* crocksdb_flushjobinfo_file_path(
711711 const crocksdb_flushjobinfo_t * , size_t * );
712712extern C_ROCKSDB_LIBRARY_API const crocksdb_table_properties_t *
713713crocksdb_flushjobinfo_table_properties (const crocksdb_flushjobinfo_t * );
714- extern C_ROCKSDB_LIBRARY_API bool
714+ extern C_ROCKSDB_LIBRARY_API unsigned char
715715crocksdb_flushjobinfo_triggered_writes_slowdown (const crocksdb_flushjobinfo_t * );
716- extern C_ROCKSDB_LIBRARY_API bool
716+ extern C_ROCKSDB_LIBRARY_API unsigned char
717717crocksdb_flushjobinfo_triggered_writes_stop (const crocksdb_flushjobinfo_t * );
718718
719719/* Compaction job info */
720-
720+ extern C_ROCKSDB_LIBRARY_API void crocksdb_compactionjobinfo_status (const crocksdb_compactionjobinfo_t * info , char * *
721+ errptr );
721722extern C_ROCKSDB_LIBRARY_API const char * crocksdb_compactionjobinfo_cf_name (
722723 const crocksdb_compactionjobinfo_t * , size_t * );
723724extern C_ROCKSDB_LIBRARY_API size_t
@@ -757,7 +758,6 @@ crocksdb_compactionjobinfo_total_output_bytes(
757758 const crocksdb_compactionjobinfo_t * info );
758759
759760/* External file ingestion info */
760-
761761extern C_ROCKSDB_LIBRARY_API const char *
762762crocksdb_externalfileingestioninfo_cf_name (
763763 const crocksdb_externalfileingestioninfo_t * , size_t * );
@@ -940,10 +940,10 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_enable_statistics(
940940 crocksdb_options_t * , unsigned char );
941941extern C_ROCKSDB_LIBRARY_API void crocksdb_options_reset_statistics (
942942 crocksdb_options_t * );
943- extern C_ROCKSDB_LIBRARY_API bool crocksdb_load_latest_options (
943+ extern C_ROCKSDB_LIBRARY_API unsigned char crocksdb_load_latest_options (
944944 const char * dbpath , crocksdb_env_t * env , crocksdb_options_t * db_options ,
945945 crocksdb_column_family_descriptor * * * cf_descs , size_t * cf_descs_len ,
946- bool ignore_unknown_options , char * * errptr );
946+ unsigned char ignore_unknown_options , char * * errptr );
947947
948948/* returns a pointer to a malloc()-ed, null terminated string */
949949extern C_ROCKSDB_LIBRARY_API char * crocksdb_options_statistics_get_string (
@@ -1161,7 +1161,7 @@ extern C_ROCKSDB_LIBRARY_API crocksdb_ratelimiter_t* crocksdb_ratelimiter_create
11611161 int64_t rate_bytes_per_sec , int64_t refill_period_us , int32_t fairness );
11621162extern C_ROCKSDB_LIBRARY_API crocksdb_ratelimiter_t * crocksdb_ratelimiter_create_with_auto_tuned (
11631163 int64_t rate_bytes_per_sec , int64_t refill_period_us , int32_t fairness ,
1164- crocksdb_ratelimiter_mode_t mode , bool auto_tuned );
1164+ crocksdb_ratelimiter_mode_t mode , unsigned char auto_tuned );
11651165extern C_ROCKSDB_LIBRARY_API void crocksdb_ratelimiter_destroy (crocksdb_ratelimiter_t * );
11661166extern C_ROCKSDB_LIBRARY_API void crocksdb_ratelimiter_set_bytes_per_second (
11671167 crocksdb_ratelimiter_t * limiter , int64_t rate_bytes_per_sec );
@@ -1376,7 +1376,7 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_lru_cache_options_set_capacity(
13761376extern C_ROCKSDB_LIBRARY_API void crocksdb_lru_cache_options_set_num_shard_bits (
13771377 crocksdb_lru_cache_options_t * , int );
13781378extern C_ROCKSDB_LIBRARY_API void crocksdb_lru_cache_options_set_strict_capacity_limit (
1379- crocksdb_lru_cache_options_t * , bool );
1379+ crocksdb_lru_cache_options_t * , unsigned char );
13801380extern C_ROCKSDB_LIBRARY_API void crocksdb_lru_cache_options_set_high_pri_pool_ratio (
13811381 crocksdb_lru_cache_options_t * , double );
13821382extern C_ROCKSDB_LIBRARY_API void crocksdb_lru_cache_options_set_memory_allocator (
@@ -1522,7 +1522,7 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_ingest_external_file_cf(
15221522 crocksdb_t * db , crocksdb_column_family_handle_t * handle ,
15231523 const char * const * file_list , const size_t list_len ,
15241524 const crocksdb_ingestexternalfileoptions_t * opt , char * * errptr );
1525- extern C_ROCKSDB_LIBRARY_API bool crocksdb_ingest_external_file_optimized (
1525+ extern C_ROCKSDB_LIBRARY_API unsigned char crocksdb_ingest_external_file_optimized (
15261526 crocksdb_t * db , crocksdb_column_family_handle_t * handle ,
15271527 const char * const * file_list , const size_t list_len ,
15281528 const crocksdb_ingestexternalfileoptions_t * opt , char * * errptr );
@@ -1581,7 +1581,7 @@ crocksdb_fifo_compaction_options_set_max_table_files_size(
15811581 crocksdb_fifo_compaction_options_t * fifo_opts , uint64_t size );
15821582extern C_ROCKSDB_LIBRARY_API void
15831583crocksdb_fifo_compaction_options_set_allow_compaction (
1584- crocksdb_fifo_compaction_options_t * fifo_opts , bool allow_compaction );
1584+ crocksdb_fifo_compaction_options_t * fifo_opts , unsigned char allow_compaction );
15851585extern C_ROCKSDB_LIBRARY_API void crocksdb_fifo_compaction_options_destroy (
15861586 crocksdb_fifo_compaction_options_t * fifo_opts );
15871587
@@ -1610,19 +1610,19 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_delete_files_in_range(
16101610 crocksdb_t * db ,
16111611 const char * start_key , size_t start_key_len ,
16121612 const char * limit_key , size_t limit_key_len ,
1613- bool include_end , char * * errptr );
1613+ unsigned char include_end , char * * errptr );
16141614
16151615extern C_ROCKSDB_LIBRARY_API void crocksdb_delete_files_in_range_cf (
16161616 crocksdb_t * db , crocksdb_column_family_handle_t * column_family ,
16171617 const char * start_key , size_t start_key_len ,
16181618 const char * limit_key , size_t limit_key_len ,
1619- bool include_end , char * * errptr );
1619+ unsigned char include_end , char * * errptr );
16201620
16211621extern C_ROCKSDB_LIBRARY_API void crocksdb_delete_files_in_ranges_cf (
16221622 crocksdb_t * db , crocksdb_column_family_handle_t * cf ,
16231623 const char * const * start_keys , const size_t * start_keys_lens ,
16241624 const char * const * limit_keys , const size_t * limit_keys_lens ,
1625- size_t num_ranges , bool include_end , char * * errptr );
1625+ size_t num_ranges , unsigned char include_end , char * * errptr );
16261626
16271627// referring to convention (3), this should be used by client
16281628// to free memory that was malloc()ed
@@ -1764,17 +1764,16 @@ crocksdb_options_add_table_properties_collector_factory(
17641764 crocksdb_options_t * opt , crocksdb_table_properties_collector_factory_t * f );
17651765
17661766/* Get Table Properties */
1767-
17681767extern C_ROCKSDB_LIBRARY_API crocksdb_table_properties_collection_t *
1769- crocksdb_get_propeties_of_all_tables (crocksdb_t * db , char * * errptr );
1768+ crocksdb_get_properties_of_all_tables (crocksdb_t * db , char * * errptr );
17701769
17711770extern C_ROCKSDB_LIBRARY_API crocksdb_table_properties_collection_t *
1772- crocksdb_get_propeties_of_all_tables_cf (crocksdb_t * db ,
1771+ crocksdb_get_properties_of_all_tables_cf (crocksdb_t * db ,
17731772 crocksdb_column_family_handle_t * cf ,
17741773 char * * errptr );
17751774
17761775extern C_ROCKSDB_LIBRARY_API crocksdb_table_properties_collection_t *
1777- crocksdb_get_propeties_of_tables_in_range (
1776+ crocksdb_get_properties_of_tables_in_range (
17781777 crocksdb_t * db , crocksdb_column_family_handle_t * cf , int num_ranges ,
17791778 const char * const * start_keys , const size_t * start_keys_lens ,
17801779 const char * const * limit_keys , const size_t * limit_keys_lens ,
@@ -1797,7 +1796,7 @@ extern C_ROCKSDB_LIBRARY_API const char *
17971796crocksdb_keyversions_key (const crocksdb_keyversions_t * kvs , int index );
17981797
17991798extern C_ROCKSDB_LIBRARY_API const char *
1800- crocksdb_keyversions_key (const crocksdb_keyversions_t * kvs , int index );
1799+ crocksdb_keyversions_value (const crocksdb_keyversions_t * kvs , int index );
18011800
18021801extern C_ROCKSDB_LIBRARY_API uint64_t
18031802crocksdb_keyversions_seq (const crocksdb_keyversions_t * kvs , int index );
@@ -2092,7 +2091,7 @@ extern C_ROCKSDB_LIBRARY_API void ctitandb_decode_blob_index(
20922091 char * * errptr );
20932092
20942093extern C_ROCKSDB_LIBRARY_API void ctitandb_encode_blob_index (
2095- const ctitandb_blob_index_t & index , char * * value , size_t * value_size );
2094+ const ctitandb_blob_index_t * index , char * * value , size_t * value_size );
20962095
20972096extern C_ROCKSDB_LIBRARY_API void ctitandb_options_set_disable_background_gc (
20982097 ctitandb_options_t * options , unsigned char disable );
@@ -2145,19 +2144,21 @@ extern C_ROCKSDB_LIBRARY_API size_t ctitandb_options_get_blob_cache_capacity(
21452144extern C_ROCKSDB_LIBRARY_API void ctitandb_options_set_discardable_ratio (
21462145 ctitandb_options_t * options , double ratio );
21472146
2148- extern void ctitandb_options_set_sample_ratio (ctitandb_options_t * options ,
2147+ extern void C_ROCKSDB_LIBRARY_API ctitandb_options_set_sample_ratio (ctitandb_options_t * options ,
21492148 double ratio );
21502149
2150+ extern void C_ROCKSDB_LIBRARY_API ctitandb_options_set_blob_run_mode (ctitandb_options_t * options , int mode );
2151+
21512152/* TitanReadOptions */
21522153
21532154extern C_ROCKSDB_LIBRARY_API ctitandb_readoptions_t * ctitandb_readoptions_create ();
21542155
21552156extern C_ROCKSDB_LIBRARY_API void ctitandb_readoptions_destroy (ctitandb_readoptions_t * opts );
21562157
2157- extern C_ROCKSDB_LIBRARY_API bool ctitandb_readoptions_key_only (ctitandb_readoptions_t * opts );
2158+ extern C_ROCKSDB_LIBRARY_API unsigned char ctitandb_readoptions_key_only (ctitandb_readoptions_t * opts );
21582159
21592160extern C_ROCKSDB_LIBRARY_API void ctitandb_readoptions_set_key_only (ctitandb_readoptions_t * opts ,
2160- bool v );
2161+ unsigned char v );
21612162
21622163/* Titan Iterator */
21632164
@@ -2185,19 +2186,19 @@ extern C_ROCKSDB_LIBRARY_API void ctitandb_delete_files_in_range(
21852186 crocksdb_t * db ,
21862187 const char * start_key , size_t start_key_len ,
21872188 const char * limit_key , size_t limit_key_len ,
2188- bool include_end , char * * errptr );
2189+ unsigned char include_end , char * * errptr );
21892190
21902191extern C_ROCKSDB_LIBRARY_API void ctitandb_delete_files_in_range_cf (
21912192 crocksdb_t * db , crocksdb_column_family_handle_t * column_family ,
21922193 const char * start_key , size_t start_key_len ,
21932194 const char * limit_key , size_t limit_key_len ,
2194- bool include_end , char * * errptr );
2195+ unsigned char include_end , char * * errptr );
21952196
21962197extern C_ROCKSDB_LIBRARY_API void ctitandb_delete_files_in_ranges_cf (
21972198 crocksdb_t * db , crocksdb_column_family_handle_t * cf ,
21982199 const char * const * start_keys , const size_t * start_keys_lens ,
21992200 const char * const * limit_keys , const size_t * limit_keys_lens ,
2200- size_t num_ranges , bool include_end , char * * errptr );
2201+ size_t num_ranges , unsigned char include_end , char * * errptr );
22012202
22022203#ifdef __cplusplus
22032204} /* end extern "C" */
0 commit comments