diff --git a/db/c.cc b/db/c.cc index 42a686640..0cee46b41 100644 --- a/db/c.cc +++ b/db/c.cc @@ -671,8 +671,8 @@ rocksdb_t* rocksdb_open_column_families( const rocksdb_options_t* db_options, const char* name, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr) { std::vector column_families; @@ -703,8 +703,8 @@ rocksdb_t* rocksdb_open_for_read_only_column_families( const rocksdb_options_t* db_options, const char* name, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, unsigned char error_if_log_file_exist, char** errptr) { @@ -735,8 +735,8 @@ rocksdb_t* rocksdb_open_for_read_only_column_families( rocksdb_t* rocksdb_open_as_secondary_column_families( const rocksdb_options_t* db_options, const char* name, const char* secondary_path, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr) { std::vector column_families; for (int i = 0; i != num_column_families; ++i) { @@ -3837,8 +3837,8 @@ rocksdb_transactiondb_t* rocksdb_transactiondb_open( rocksdb_transactiondb_t* rocksdb_transactiondb_open_column_families( const rocksdb_options_t* options, const rocksdb_transactiondb_options_t* txn_db_options, const char* name, - int num_column_families, const char** column_family_names, - const rocksdb_options_t** column_family_options, + int num_column_families, const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr) { std::vector column_families; for (int i = 0; i < num_column_families; i++) { @@ -4215,8 +4215,8 @@ rocksdb_optimistictransactiondb_t* rocksdb_optimistictransactiondb_open( rocksdb_optimistictransactiondb_t* rocksdb_optimistictransactiondb_open_column_families( const rocksdb_options_t* db_options, const char* name, - int num_column_families, const char** column_family_names, - const rocksdb_options_t** column_family_options, + int num_column_families, const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr) { std::vector column_families; for (int i = 0; i < num_column_families; i++) { diff --git a/include/rocksdb/c.h b/include/rocksdb/c.h index dca9a8ecf..c86e08d00 100644 --- a/include/rocksdb/c.h +++ b/include/rocksdb/c.h @@ -210,23 +210,23 @@ extern ROCKSDB_LIBRARY_API void rocksdb_checkpoint_object_destroy( extern ROCKSDB_LIBRARY_API rocksdb_t* rocksdb_open_column_families( const rocksdb_options_t* options, const char* name, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr); extern ROCKSDB_LIBRARY_API rocksdb_t* rocksdb_open_for_read_only_column_families( const rocksdb_options_t* options, const char* name, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, unsigned char error_if_log_file_exist, char** errptr); extern ROCKSDB_LIBRARY_API rocksdb_t* rocksdb_open_as_secondary_column_families( const rocksdb_options_t* options, const char* name, const char* secondary_path, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** colummn_family_handles, char** errptr); extern ROCKSDB_LIBRARY_API char** rocksdb_list_column_families( @@ -1512,8 +1512,8 @@ extern ROCKSDB_LIBRARY_API rocksdb_transactiondb_t* rocksdb_transactiondb_open( rocksdb_transactiondb_t* rocksdb_transactiondb_open_column_families( const rocksdb_options_t* options, const rocksdb_transactiondb_options_t* txn_db_options, const char* name, - int num_column_families, const char** column_family_names, - const rocksdb_options_t** column_family_options, + int num_column_families, const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr); extern ROCKSDB_LIBRARY_API const rocksdb_snapshot_t* @@ -1661,8 +1661,8 @@ rocksdb_optimistictransactiondb_open(const rocksdb_options_t* options, extern ROCKSDB_LIBRARY_API rocksdb_optimistictransactiondb_t* rocksdb_optimistictransactiondb_open_column_families( const rocksdb_options_t* options, const char* name, int num_column_families, - const char** column_family_names, - const rocksdb_options_t** column_family_options, + const char* const* column_family_names, + const rocksdb_options_t* const* column_family_options, rocksdb_column_family_handle_t** column_family_handles, char** errptr); extern ROCKSDB_LIBRARY_API rocksdb_t*