Skip to content
🚫 DEPRECATED
C++ Java Perl Shell C Makefile Other
Branch: master
Clone or download
tamird Merge pull request #44 from cockroachdb/lrt
Explicitly link librt on Linux
Latest commit 0dd4239 Mar 30, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
internal Use a stable jemalloc identifier Mar 21, 2017
Makefile Include TOOLS_LIB_SOURCES in build Jan 28, 2017
README.md Update README Mar 29, 2017
abort.patch Add patch fixing header hygiene Feb 27, 2017
cgo_flags.go Remove architecture-specific flags Mar 29, 2017
cgo_flags_jemalloc.go Use a stable jemalloc identifier Mar 21, 2017
cgo_flags_norace.go Enable assertions in race builds Sep 7, 2016
cgo_flags_unix.go Remove `strictld`; this has served its purpose Mar 29, 2017
circle.yml circle: print commands to avoid timeout Feb 24, 2017
gettimeofday.patch Add patch fixing header hygiene Feb 27, 2017
import.sh Use a stable jemalloc identifier Mar 21, 2017
internal_db_auto_roll_logger.cc Update upstream to 4.8 Jul 11, 2016
internal_db_builder.cc import: underscore symlink file names Mar 28, 2016
internal_db_c.cc import: underscore symlink file names Mar 28, 2016
internal_db_column_family.cc import: underscore symlink file names Mar 28, 2016
internal_db_compacted_db_impl.cc import: underscore symlink file names Mar 28, 2016
internal_db_compaction.cc import: underscore symlink file names Mar 28, 2016
internal_db_compaction_iterator.cc import: underscore symlink file names Mar 28, 2016
internal_db_compaction_job.cc import: underscore symlink file names Mar 28, 2016
internal_db_compaction_picker.cc import: underscore symlink file names Mar 28, 2016
internal_db_convenience.cc import: underscore symlink file names Mar 28, 2016
internal_db_db_filesnapshot.cc import: underscore symlink file names Mar 28, 2016
internal_db_db_impl.cc import: underscore symlink file names Mar 28, 2016
internal_db_db_impl_debug.cc import: underscore symlink file names Mar 28, 2016
internal_db_db_impl_experimental.cc import: underscore symlink file names Mar 28, 2016
internal_db_db_impl_readonly.cc import: underscore symlink file names Mar 28, 2016
internal_db_db_info_dumper.cc Update upstream to 4.8 Jul 11, 2016
internal_db_db_iter.cc import: underscore symlink file names Mar 28, 2016
internal_db_dbformat.cc import: underscore symlink file names Mar 28, 2016
internal_db_event_helpers.cc import: underscore symlink file names Mar 28, 2016
internal_db_experimental.cc import: underscore symlink file names Mar 28, 2016
internal_db_external_sst_file_ingestion_job.cc Update upstream to 5.0.1. Jan 13, 2017
internal_db_file_indexer.cc import: underscore symlink file names Mar 28, 2016
internal_db_filename.cc import: underscore symlink file names Mar 28, 2016
internal_db_flush_job.cc import: underscore symlink file names Mar 28, 2016
internal_db_flush_scheduler.cc import: underscore symlink file names Mar 28, 2016
internal_db_forward_iterator.cc import: underscore symlink file names Mar 28, 2016
internal_db_internal_stats.cc import: underscore symlink file names Mar 28, 2016
internal_db_log_reader.cc import: underscore symlink file names Mar 28, 2016
internal_db_log_writer.cc import: underscore symlink file names Mar 28, 2016
internal_db_managed_iterator.cc import: underscore symlink file names Mar 28, 2016
internal_db_memtable.cc import: underscore symlink file names Mar 28, 2016
internal_db_memtable_allocator.cc import: underscore symlink file names Mar 28, 2016
internal_db_memtable_list.cc import: underscore symlink file names Mar 28, 2016
internal_db_merge_helper.cc import: underscore symlink file names Mar 28, 2016
internal_db_merge_operator.cc import: underscore symlink file names Mar 28, 2016
internal_db_range_del_aggregator.cc Update upstream to 5.0.1. Jan 13, 2017
internal_db_repair.cc import: underscore symlink file names Mar 28, 2016
internal_db_snapshot_impl.cc import: underscore symlink file names Mar 28, 2016
internal_db_table_cache.cc import: underscore symlink file names Mar 28, 2016
internal_db_table_properties_collector.cc import: underscore symlink file names Mar 28, 2016
internal_db_transaction_log_impl.cc import: underscore symlink file names Mar 28, 2016
internal_db_version_builder.cc import: underscore symlink file names Mar 28, 2016
internal_db_version_edit.cc import: underscore symlink file names Mar 28, 2016
internal_db_version_set.cc import: underscore symlink file names Mar 28, 2016
internal_db_wal_manager.cc import: underscore symlink file names Mar 28, 2016
internal_db_write_batch.cc import: underscore symlink file names Mar 28, 2016
internal_db_write_batch_base.cc import: underscore symlink file names Mar 28, 2016
internal_db_write_controller.cc import: underscore symlink file names Mar 28, 2016
internal_db_write_thread.cc import: underscore symlink file names Mar 28, 2016
internal_db_xfunc_test_points.cc Update upstream to 4.8 Jul 11, 2016
internal_memtable_hash_cuckoo_rep.cc import: underscore symlink file names Mar 28, 2016
internal_memtable_hash_linklist_rep.cc import: underscore symlink file names Mar 28, 2016
internal_memtable_hash_skiplist_rep.cc import: underscore symlink file names Mar 28, 2016
internal_memtable_skiplistrep.cc Update upstream to 4.8 Jul 11, 2016
internal_memtable_vectorrep.cc Update upstream to 4.8 Jul 11, 2016
internal_port_stack_trace.cc import: underscore symlink file names Mar 28, 2016
internal_table_adaptive_table_factory.cc import: underscore symlink file names Mar 28, 2016
internal_table_block.cc import: underscore symlink file names Mar 28, 2016
internal_table_block_based_filter_block.cc import: underscore symlink file names Mar 28, 2016
internal_table_block_based_table_builder.cc import: underscore symlink file names Mar 28, 2016
internal_table_block_based_table_factory.cc import: underscore symlink file names Mar 28, 2016
internal_table_block_based_table_reader.cc import: underscore symlink file names Mar 28, 2016
internal_table_block_builder.cc import: underscore symlink file names Mar 28, 2016
internal_table_block_prefix_index.cc import: underscore symlink file names Mar 28, 2016
internal_table_bloom_block.cc import: underscore symlink file names Mar 28, 2016
internal_table_cuckoo_table_builder.cc import: underscore symlink file names Mar 28, 2016
internal_table_cuckoo_table_factory.cc import: underscore symlink file names Mar 28, 2016
internal_table_cuckoo_table_reader.cc import: underscore symlink file names Mar 28, 2016
internal_table_flush_block_policy.cc import: underscore symlink file names Mar 28, 2016
internal_table_format.cc import: underscore symlink file names Mar 28, 2016
internal_table_full_filter_block.cc import: underscore symlink file names Mar 28, 2016
internal_table_get_context.cc import: underscore symlink file names Mar 28, 2016
internal_table_iterator.cc import: underscore symlink file names Mar 28, 2016
internal_table_merger.cc import: underscore symlink file names Mar 28, 2016
internal_table_meta_blocks.cc import: underscore symlink file names Mar 28, 2016
internal_table_persistent_cache_helper.cc Update upstream to 4.9 Aug 25, 2016
internal_table_plain_table_builder.cc import: underscore symlink file names Mar 28, 2016
internal_table_plain_table_factory.cc import: underscore symlink file names Mar 28, 2016
internal_table_plain_table_index.cc import: underscore symlink file names Mar 28, 2016
internal_table_plain_table_key_coding.cc import: underscore symlink file names Mar 28, 2016
internal_table_plain_table_reader.cc import: underscore symlink file names Mar 28, 2016
internal_table_sst_file_writer.cc import: underscore symlink file names Mar 28, 2016
internal_table_table_properties.cc
internal_table_two_level_iterator.cc import: underscore symlink file names Mar 28, 2016
internal_tools_dump_db_dump_tool.cc Include TOOLS_LIB_SOURCES in build Jan 28, 2017
internal_tools_ldb_cmd.cc Include TOOLS_LIB_SOURCES in build Jan 28, 2017
internal_tools_ldb_tool.cc Include TOOLS_LIB_SOURCES in build Jan 28, 2017
internal_tools_sst_dump_tool.cc Include TOOLS_LIB_SOURCES in build Jan 28, 2017
internal_util_arena.cc import: underscore symlink file names Mar 28, 2016
internal_util_bloom.cc import: underscore symlink file names Mar 28, 2016
internal_util_build_version.cc import: underscore symlink file names Mar 28, 2016
internal_util_cf_options.cc Update upstream to 5.0.1. Jan 13, 2017
internal_util_clock_cache.cc Update upstream to 5.0.1. Jan 13, 2017
internal_util_coding.cc import: underscore symlink file names Mar 28, 2016
internal_util_compaction_job_stats_impl.cc import: underscore symlink file names Mar 28, 2016
internal_util_comparator.cc import: underscore symlink file names Mar 28, 2016
internal_util_concurrent_arena.cc Update upstream to 4.8 Jul 11, 2016
internal_util_crc32c.cc import: underscore symlink file names Mar 28, 2016
internal_util_db_options.cc Update upstream to 5.0.1. Jan 13, 2017
internal_util_delete_scheduler.cc Update upstream to 4.8 Jul 11, 2016
internal_util_dynamic_bloom.cc import: underscore symlink file names Mar 28, 2016
internal_util_env.cc import: underscore symlink file names Mar 28, 2016
internal_util_env_chroot.cc Add a `strictld` build tag to disable ignoring symbols Feb 7, 2017
internal_util_env_hdfs.cc Add a `strictld` build tag to disable ignoring symbols Feb 7, 2017
internal_util_event_logger.cc import: underscore symlink file names Mar 28, 2016
internal_util_file_reader_writer.cc import: underscore symlink file names Mar 28, 2016
internal_util_file_util.cc import: underscore symlink file names Mar 28, 2016
internal_util_filter_policy.cc import: underscore symlink file names Mar 28, 2016
internal_util_hash.cc import: underscore symlink file names Mar 28, 2016
internal_util_histogram.cc import: underscore symlink file names Mar 28, 2016
internal_util_histogram_windowing.cc Update upstream to 4.8 Jul 11, 2016
internal_util_instrumented_mutex.cc import: underscore symlink file names Mar 28, 2016
internal_util_iostats_context.cc import: underscore symlink file names Mar 28, 2016
internal_util_log_buffer.cc import: underscore symlink file names Mar 28, 2016
internal_util_logging.cc import: underscore symlink file names Mar 28, 2016
internal_util_lru_cache.cc Update upstream to 4.11.2 Sep 29, 2016
internal_util_memenv.cc import: underscore symlink file names Mar 28, 2016
internal_util_murmurhash.cc import: underscore symlink file names Mar 28, 2016
internal_util_options.cc import: underscore symlink file names Mar 28, 2016
internal_util_options_helper.cc import: underscore symlink file names Mar 28, 2016
internal_util_options_parser.cc import: underscore symlink file names Mar 28, 2016
internal_util_options_sanity_check.cc import: underscore symlink file names Mar 28, 2016
internal_util_perf_context.cc import: underscore symlink file names Mar 28, 2016
internal_util_perf_level.cc import: underscore symlink file names Mar 28, 2016
internal_util_random.cc import: underscore symlink file names Mar 28, 2016
internal_util_rate_limiter.cc import: underscore symlink file names Mar 28, 2016
internal_util_sharded_cache.cc Update upstream to 4.11.2 Sep 29, 2016
internal_util_slice.cc import: underscore symlink file names Mar 28, 2016
internal_util_sst_file_manager_impl.cc Update upstream to 4.8 Jul 11, 2016
internal_util_statistics.cc import: underscore symlink file names Mar 28, 2016
internal_util_status.cc import: underscore symlink file names Mar 28, 2016
internal_util_status_message.cc import: underscore symlink file names Mar 28, 2016
internal_util_string_util.cc import: underscore symlink file names Mar 28, 2016
internal_util_sync_point.cc import: underscore symlink file names Mar 28, 2016
internal_util_thread_local.cc import: underscore symlink file names Mar 28, 2016
internal_util_thread_status_impl.cc import: underscore symlink file names Mar 28, 2016
internal_util_thread_status_updater.cc import: underscore symlink file names Mar 28, 2016
internal_util_thread_status_updater_debug.cc import: underscore symlink file names Mar 28, 2016
internal_util_thread_status_util.cc import: underscore symlink file names Mar 28, 2016
internal_util_thread_status_util_debug.cc import: underscore symlink file names Mar 28, 2016
internal_util_threadpool_imp.cc Update upstream to 5.0.1. Jan 13, 2017
internal_util_transaction_test_util.cc Update upstream to 4.8 Jul 11, 2016
internal_util_xfunc.cc import: underscore symlink file names Mar 28, 2016
internal_util_xxhash.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_backupable_backupable_db.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_blob_db_blob_db.cc Update upstream to 5.0.1. Jan 13, 2017
internal_utilities_checkpoint_checkpoint.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_compaction_filters_remove_emptyvalue_compactionfilter.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_convenience_info_log_finder.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_date_tiered_date_tiered_db_impl.cc Update upstream to 5.0.1. Jan 13, 2017
internal_utilities_document_document_db.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_document_json_document.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_document_json_document_builder.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_env_mirror.cc Add a `strictld` build tag to disable ignoring symbols Feb 7, 2017
internal_utilities_env_registry.cc Add a `strictld` build tag to disable ignoring symbols Feb 7, 2017
internal_utilities_geodb_geodb_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_leveldb_options_leveldb_options.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_lua_rocks_lua_compaction_filter.cc Update upstream to 5.0.1. Jan 13, 2017
internal_utilities_memory_memory_util.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_merge_operators_max.cc Update upstream to 4.9 Aug 25, 2016
internal_utilities_merge_operators_put.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_merge_operators_string_append_stringappend.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_merge_operators_string_append_stringappend2.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_merge_operators_uint64add.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_option_change_migration_option_change_migration.cc Update upstream to 4.11.2 Sep 29, 2016
internal_utilities_options_options_util.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_persistent_cache_block_cache_tier.cc Update upstream to 5.0.1. Jan 13, 2017
internal_utilities_persistent_cache_block_cache_tier_file.cc Update upstream to 4.11.2 Sep 29, 2016
internal_utilities_persistent_cache_block_cache_tier_metadata.cc Update upstream to 4.11.2 Sep 29, 2016
internal_utilities_persistent_cache_persistent_cache_tier.cc Update upstream to 4.9 Aug 25, 2016
internal_utilities_persistent_cache_volatile_tier_impl.cc Update upstream to 4.9 Aug 25, 2016
internal_utilities_simulator_cache_sim_cache.cc Update upstream to 4.9 Aug 25, 2016
internal_utilities_spatialdb_spatial_db.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_table_properties_collectors_compact_on_deletion_collector.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_optimistic_transaction_db_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_optimistic_transaction_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_transaction_base.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_transaction_db_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_transaction_db_mutex_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_transaction_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_transaction_lock_mgr.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_transactions_transaction_util.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_ttl_db_ttl_impl.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_write_batch_with_index_write_batch_with_index.cc import: underscore symlink file names Mar 28, 2016
internal_utilities_write_batch_with_index_write_batch_with_index_internal.cc import: underscore symlink file names Mar 28, 2016
jemalloc.patch Use a stable jemalloc identifier Mar 21, 2017
platform.cc Add a `strictld` build tag to disable ignoring symbols Feb 7, 2017

README.md

RocksDB

This is a go-gettable version of the RocksDB C++ library for use in Go code that needs to link against the C++ RocksDB library but wants to integrate with go get and go build.

To use in your project you need to import the package and set appropriate cgo flag directives:

import _ "github.com/cockroachdb/c-rocksdb"

// #cgo CXXFLAGS: -std=c++11
// #cgo CPPFLAGS: -I<relative-path>/c-rocksdb/internal/include
// #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
// #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
import "C"

To update the upstream version of RocksDB you'll want to follow the instructions in and run ./import.sh.

You can’t perform that action at this time.