rocksdb-native 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.clang-format +15 -0
- package/.github/workflows/test-node.yml +23 -0
- package/.gitmodules +4 -0
- package/CMakeLists.txt +33 -0
- package/LICENSE +201 -0
- package/NOTICE +13 -0
- package/README.md +15 -0
- package/binding.c +470 -0
- package/binding.js +1 -0
- package/index.js +276 -0
- package/package.json +19 -0
- package/vendor/rocksdb/.circleci/config.yml +892 -0
- package/vendor/rocksdb/.circleci/ubsan_suppression_list.txt +6 -0
- package/vendor/rocksdb/.clang-format +5 -0
- package/vendor/rocksdb/.github/workflows/sanity_check.yml +47 -0
- package/vendor/rocksdb/.lgtm.yml +4 -0
- package/vendor/rocksdb/AUTHORS +12 -0
- package/vendor/rocksdb/CMakeLists.txt +1591 -0
- package/vendor/rocksdb/CODE_OF_CONDUCT.md +77 -0
- package/vendor/rocksdb/CONTRIBUTING.md +17 -0
- package/vendor/rocksdb/COPYING +339 -0
- package/vendor/rocksdb/DEFAULT_OPTIONS_HISTORY.md +24 -0
- package/vendor/rocksdb/DUMP_FORMAT.md +16 -0
- package/vendor/rocksdb/HISTORY.md +2399 -0
- package/vendor/rocksdb/INSTALL.md +220 -0
- package/vendor/rocksdb/LANGUAGE-BINDINGS.md +26 -0
- package/vendor/rocksdb/LICENSE.Apache +202 -0
- package/vendor/rocksdb/LICENSE.leveldb +29 -0
- package/vendor/rocksdb/Makefile +2579 -0
- package/vendor/rocksdb/PLUGINS.md +8 -0
- package/vendor/rocksdb/README.md +29 -0
- package/vendor/rocksdb/TARGETS +5599 -0
- package/vendor/rocksdb/USERS.md +165 -0
- package/vendor/rocksdb/Vagrantfile +39 -0
- package/vendor/rocksdb/WINDOWS_PORT.md +228 -0
- package/vendor/rocksdb/buckifier/bench-slow.json +6163 -0
- package/vendor/rocksdb/buckifier/bench.json +1594 -0
- package/vendor/rocksdb/buckifier/buckify_rocksdb.py +333 -0
- package/vendor/rocksdb/buckifier/check_buck_targets.sh +32 -0
- package/vendor/rocksdb/buckifier/rocks_test_runner.sh +6 -0
- package/vendor/rocksdb/buckifier/targets_builder.py +150 -0
- package/vendor/rocksdb/buckifier/targets_cfg.py +41 -0
- package/vendor/rocksdb/buckifier/util.py +118 -0
- package/vendor/rocksdb/build_tools/amalgamate.py +168 -0
- package/vendor/rocksdb/build_tools/benchmark_log_tool.py +238 -0
- package/vendor/rocksdb/build_tools/build_detect_platform +804 -0
- package/vendor/rocksdb/build_tools/check-sources.sh +48 -0
- package/vendor/rocksdb/build_tools/dependencies_platform010.sh +22 -0
- package/vendor/rocksdb/build_tools/dockerbuild.sh +3 -0
- package/vendor/rocksdb/build_tools/error_filter.py +181 -0
- package/vendor/rocksdb/build_tools/fb_compile_mongo.sh +55 -0
- package/vendor/rocksdb/build_tools/fbcode_config.sh +175 -0
- package/vendor/rocksdb/build_tools/fbcode_config_platform010.sh +175 -0
- package/vendor/rocksdb/build_tools/format-diff.sh +203 -0
- package/vendor/rocksdb/build_tools/gnu_parallel +7971 -0
- package/vendor/rocksdb/build_tools/make_package.sh +129 -0
- package/vendor/rocksdb/build_tools/ps_with_stack +38 -0
- package/vendor/rocksdb/build_tools/regression_build_test.sh +396 -0
- package/vendor/rocksdb/build_tools/run_ci_db_test.ps1 +493 -0
- package/vendor/rocksdb/build_tools/setup_centos7.sh +45 -0
- package/vendor/rocksdb/build_tools/ubuntu20_image/Dockerfile +57 -0
- package/vendor/rocksdb/build_tools/update_dependencies.sh +106 -0
- package/vendor/rocksdb/build_tools/version.sh +23 -0
- package/vendor/rocksdb/cache/cache.cc +158 -0
- package/vendor/rocksdb/cache/cache_bench.cc +20 -0
- package/vendor/rocksdb/cache/cache_bench_tool.cc +969 -0
- package/vendor/rocksdb/cache/cache_entry_roles.cc +104 -0
- package/vendor/rocksdb/cache/cache_entry_roles.h +20 -0
- package/vendor/rocksdb/cache/cache_entry_stats.h +182 -0
- package/vendor/rocksdb/cache/cache_helpers.cc +40 -0
- package/vendor/rocksdb/cache/cache_helpers.h +139 -0
- package/vendor/rocksdb/cache/cache_key.cc +364 -0
- package/vendor/rocksdb/cache/cache_key.h +143 -0
- package/vendor/rocksdb/cache/cache_reservation_manager.cc +184 -0
- package/vendor/rocksdb/cache/cache_reservation_manager.h +317 -0
- package/vendor/rocksdb/cache/cache_reservation_manager_test.cc +469 -0
- package/vendor/rocksdb/cache/cache_test.cc +1061 -0
- package/vendor/rocksdb/cache/charged_cache.cc +109 -0
- package/vendor/rocksdb/cache/charged_cache.h +59 -0
- package/vendor/rocksdb/cache/clock_cache.cc +1482 -0
- package/vendor/rocksdb/cache/clock_cache.h +707 -0
- package/vendor/rocksdb/cache/compressed_secondary_cache.cc +304 -0
- package/vendor/rocksdb/cache/compressed_secondary_cache.h +132 -0
- package/vendor/rocksdb/cache/compressed_secondary_cache_test.cc +983 -0
- package/vendor/rocksdb/cache/lru_cache.cc +723 -0
- package/vendor/rocksdb/cache/lru_cache.h +467 -0
- package/vendor/rocksdb/cache/lru_cache_test.cc +2559 -0
- package/vendor/rocksdb/cache/secondary_cache.cc +44 -0
- package/vendor/rocksdb/cache/secondary_cache_adapter.cc +295 -0
- package/vendor/rocksdb/cache/secondary_cache_adapter.h +52 -0
- package/vendor/rocksdb/cache/sharded_cache.cc +137 -0
- package/vendor/rocksdb/cache/sharded_cache.h +309 -0
- package/vendor/rocksdb/cache/typed_cache.h +375 -0
- package/vendor/rocksdb/cmake/RocksDBConfig.cmake.in +54 -0
- package/vendor/rocksdb/common.mk +30 -0
- package/vendor/rocksdb/crash_test.mk +107 -0
- package/vendor/rocksdb/db/arena_wrapped_db_iter.cc +163 -0
- package/vendor/rocksdb/db/arena_wrapped_db_iter.h +127 -0
- package/vendor/rocksdb/db/blob/blob_constants.h +16 -0
- package/vendor/rocksdb/db/blob/blob_contents.cc +42 -0
- package/vendor/rocksdb/db/blob/blob_contents.h +59 -0
- package/vendor/rocksdb/db/blob/blob_counting_iterator.h +150 -0
- package/vendor/rocksdb/db/blob/blob_counting_iterator_test.cc +327 -0
- package/vendor/rocksdb/db/blob/blob_fetcher.cc +34 -0
- package/vendor/rocksdb/db/blob/blob_fetcher.h +37 -0
- package/vendor/rocksdb/db/blob/blob_file_addition.cc +156 -0
- package/vendor/rocksdb/db/blob/blob_file_addition.h +67 -0
- package/vendor/rocksdb/db/blob/blob_file_addition_test.cc +211 -0
- package/vendor/rocksdb/db/blob/blob_file_builder.cc +426 -0
- package/vendor/rocksdb/db/blob/blob_file_builder.h +112 -0
- package/vendor/rocksdb/db/blob/blob_file_builder_test.cc +680 -0
- package/vendor/rocksdb/db/blob/blob_file_cache.cc +101 -0
- package/vendor/rocksdb/db/blob/blob_file_cache.h +56 -0
- package/vendor/rocksdb/db/blob/blob_file_cache_test.cc +278 -0
- package/vendor/rocksdb/db/blob/blob_file_completion_callback.h +84 -0
- package/vendor/rocksdb/db/blob/blob_file_garbage.cc +134 -0
- package/vendor/rocksdb/db/blob/blob_file_garbage.h +57 -0
- package/vendor/rocksdb/db/blob/blob_file_garbage_test.cc +174 -0
- package/vendor/rocksdb/db/blob/blob_file_meta.cc +62 -0
- package/vendor/rocksdb/db/blob/blob_file_meta.h +170 -0
- package/vendor/rocksdb/db/blob/blob_file_reader.cc +624 -0
- package/vendor/rocksdb/db/blob/blob_file_reader.h +112 -0
- package/vendor/rocksdb/db/blob/blob_file_reader_test.cc +1023 -0
- package/vendor/rocksdb/db/blob/blob_garbage_meter.cc +100 -0
- package/vendor/rocksdb/db/blob/blob_garbage_meter.h +102 -0
- package/vendor/rocksdb/db/blob/blob_garbage_meter_test.cc +197 -0
- package/vendor/rocksdb/db/blob/blob_index.h +187 -0
- package/vendor/rocksdb/db/blob/blob_log_format.cc +143 -0
- package/vendor/rocksdb/db/blob/blob_log_format.h +164 -0
- package/vendor/rocksdb/db/blob/blob_log_sequential_reader.cc +134 -0
- package/vendor/rocksdb/db/blob/blob_log_sequential_reader.h +83 -0
- package/vendor/rocksdb/db/blob/blob_log_writer.cc +178 -0
- package/vendor/rocksdb/db/blob/blob_log_writer.h +83 -0
- package/vendor/rocksdb/db/blob/blob_read_request.h +58 -0
- package/vendor/rocksdb/db/blob/blob_source.cc +459 -0
- package/vendor/rocksdb/db/blob/blob_source.h +161 -0
- package/vendor/rocksdb/db/blob/blob_source_test.cc +1611 -0
- package/vendor/rocksdb/db/blob/db_blob_basic_test.cc +2237 -0
- package/vendor/rocksdb/db/blob/db_blob_compaction_test.cc +899 -0
- package/vendor/rocksdb/db/blob/db_blob_corruption_test.cc +80 -0
- package/vendor/rocksdb/db/blob/db_blob_index_test.cc +596 -0
- package/vendor/rocksdb/db/blob/prefetch_buffer_collection.cc +21 -0
- package/vendor/rocksdb/db/blob/prefetch_buffer_collection.h +38 -0
- package/vendor/rocksdb/db/builder.cc +447 -0
- package/vendor/rocksdb/db/builder.h +78 -0
- package/vendor/rocksdb/db/c.cc +6559 -0
- package/vendor/rocksdb/db/c_test.c +3609 -0
- package/vendor/rocksdb/db/column_family.cc +1708 -0
- package/vendor/rocksdb/db/column_family.h +851 -0
- package/vendor/rocksdb/db/column_family_test.cc +3382 -0
- package/vendor/rocksdb/db/compact_files_test.cc +492 -0
- package/vendor/rocksdb/db/compaction/clipping_iterator.h +281 -0
- package/vendor/rocksdb/db/compaction/clipping_iterator_test.cc +259 -0
- package/vendor/rocksdb/db/compaction/compaction.cc +857 -0
- package/vendor/rocksdb/db/compaction/compaction.h +565 -0
- package/vendor/rocksdb/db/compaction/compaction_iteration_stats.h +49 -0
- package/vendor/rocksdb/db/compaction/compaction_iterator.cc +1445 -0
- package/vendor/rocksdb/db/compaction/compaction_iterator.h +530 -0
- package/vendor/rocksdb/db/compaction/compaction_iterator_test.cc +1618 -0
- package/vendor/rocksdb/db/compaction/compaction_job.cc +2054 -0
- package/vendor/rocksdb/db/compaction/compaction_job.h +504 -0
- package/vendor/rocksdb/db/compaction/compaction_job_stats_test.cc +965 -0
- package/vendor/rocksdb/db/compaction/compaction_job_test.cc +2444 -0
- package/vendor/rocksdb/db/compaction/compaction_outputs.cc +784 -0
- package/vendor/rocksdb/db/compaction/compaction_outputs.h +403 -0
- package/vendor/rocksdb/db/compaction/compaction_picker.cc +1225 -0
- package/vendor/rocksdb/db/compaction/compaction_picker.h +318 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_fifo.cc +471 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_fifo.h +60 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_level.cc +888 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_level.h +33 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_test.cc +4074 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_universal.cc +1452 -0
- package/vendor/rocksdb/db/compaction/compaction_picker_universal.h +30 -0
- package/vendor/rocksdb/db/compaction/compaction_service_job.cc +833 -0
- package/vendor/rocksdb/db/compaction/compaction_service_test.cc +954 -0
- package/vendor/rocksdb/db/compaction/compaction_state.cc +46 -0
- package/vendor/rocksdb/db/compaction/compaction_state.h +42 -0
- package/vendor/rocksdb/db/compaction/file_pri.h +92 -0
- package/vendor/rocksdb/db/compaction/sst_partitioner.cc +83 -0
- package/vendor/rocksdb/db/compaction/subcompaction_state.cc +106 -0
- package/vendor/rocksdb/db/compaction/subcompaction_state.h +220 -0
- package/vendor/rocksdb/db/compaction/tiered_compaction_test.cc +2149 -0
- package/vendor/rocksdb/db/comparator_db_test.cc +678 -0
- package/vendor/rocksdb/db/convenience.cc +81 -0
- package/vendor/rocksdb/db/corruption_test.cc +1670 -0
- package/vendor/rocksdb/db/cuckoo_table_db_test.cc +351 -0
- package/vendor/rocksdb/db/db_basic_test.cc +4777 -0
- package/vendor/rocksdb/db/db_block_cache_test.cc +1972 -0
- package/vendor/rocksdb/db/db_bloom_filter_test.cc +3513 -0
- package/vendor/rocksdb/db/db_clip_test.cc +142 -0
- package/vendor/rocksdb/db/db_compaction_filter_test.cc +1030 -0
- package/vendor/rocksdb/db/db_compaction_test.cc +9424 -0
- package/vendor/rocksdb/db/db_dynamic_level_test.cc +499 -0
- package/vendor/rocksdb/db/db_encryption_test.cc +126 -0
- package/vendor/rocksdb/db/db_filesnapshot.cc +436 -0
- package/vendor/rocksdb/db/db_flush_test.cc +3202 -0
- package/vendor/rocksdb/db/db_impl/compacted_db_impl.cc +260 -0
- package/vendor/rocksdb/db/db_impl/compacted_db_impl.h +157 -0
- package/vendor/rocksdb/db/db_impl/db_impl.cc +6132 -0
- package/vendor/rocksdb/db/db_impl/db_impl.h +2841 -0
- package/vendor/rocksdb/db/db_impl/db_impl_compaction_flush.cc +3980 -0
- package/vendor/rocksdb/db/db_impl/db_impl_debug.cc +314 -0
- package/vendor/rocksdb/db/db_impl/db_impl_experimental.cc +159 -0
- package/vendor/rocksdb/db/db_impl/db_impl_files.cc +1014 -0
- package/vendor/rocksdb/db/db_impl/db_impl_open.cc +2202 -0
- package/vendor/rocksdb/db/db_impl/db_impl_readonly.cc +334 -0
- package/vendor/rocksdb/db/db_impl/db_impl_readonly.h +173 -0
- package/vendor/rocksdb/db/db_impl/db_impl_secondary.cc +964 -0
- package/vendor/rocksdb/db/db_impl/db_impl_secondary.h +406 -0
- package/vendor/rocksdb/db/db_impl/db_impl_write.cc +2487 -0
- package/vendor/rocksdb/db/db_info_dumper.cc +147 -0
- package/vendor/rocksdb/db/db_info_dumper.h +15 -0
- package/vendor/rocksdb/db/db_inplace_update_test.cc +262 -0
- package/vendor/rocksdb/db/db_io_failure_test.cc +589 -0
- package/vendor/rocksdb/db/db_iter.cc +1708 -0
- package/vendor/rocksdb/db/db_iter.h +411 -0
- package/vendor/rocksdb/db/db_iter_stress_test.cc +658 -0
- package/vendor/rocksdb/db/db_iter_test.cc +3195 -0
- package/vendor/rocksdb/db/db_iterator_test.cc +3304 -0
- package/vendor/rocksdb/db/db_kv_checksum_test.cc +885 -0
- package/vendor/rocksdb/db/db_log_iter_test.cc +297 -0
- package/vendor/rocksdb/db/db_logical_block_size_cache_test.cc +505 -0
- package/vendor/rocksdb/db/db_memtable_test.cc +344 -0
- package/vendor/rocksdb/db/db_merge_operand_test.cc +488 -0
- package/vendor/rocksdb/db/db_merge_operator_test.cc +866 -0
- package/vendor/rocksdb/db/db_options_test.cc +1330 -0
- package/vendor/rocksdb/db/db_properties_test.cc +2377 -0
- package/vendor/rocksdb/db/db_range_del_test.cc +3414 -0
- package/vendor/rocksdb/db/db_rate_limiter_test.cc +437 -0
- package/vendor/rocksdb/db/db_readonly_with_timestamp_test.cc +956 -0
- package/vendor/rocksdb/db/db_secondary_test.cc +1691 -0
- package/vendor/rocksdb/db/db_sst_test.cc +1865 -0
- package/vendor/rocksdb/db/db_statistics_test.cc +292 -0
- package/vendor/rocksdb/db/db_table_properties_test.cc +623 -0
- package/vendor/rocksdb/db/db_tailing_iter_test.cc +595 -0
- package/vendor/rocksdb/db/db_test.cc +7359 -0
- package/vendor/rocksdb/db/db_test2.cc +7679 -0
- package/vendor/rocksdb/db/db_test_util.cc +1759 -0
- package/vendor/rocksdb/db/db_test_util.h +1340 -0
- package/vendor/rocksdb/db/db_universal_compaction_test.cc +2227 -0
- package/vendor/rocksdb/db/db_wal_test.cc +2433 -0
- package/vendor/rocksdb/db/db_with_timestamp_basic_test.cc +4016 -0
- package/vendor/rocksdb/db/db_with_timestamp_compaction_test.cc +353 -0
- package/vendor/rocksdb/db/db_with_timestamp_test_util.cc +96 -0
- package/vendor/rocksdb/db/db_with_timestamp_test_util.h +126 -0
- package/vendor/rocksdb/db/db_write_buffer_manager_test.cc +927 -0
- package/vendor/rocksdb/db/db_write_test.cc +795 -0
- package/vendor/rocksdb/db/dbformat.cc +213 -0
- package/vendor/rocksdb/db/dbformat.h +869 -0
- package/vendor/rocksdb/db/dbformat_test.cc +214 -0
- package/vendor/rocksdb/db/deletefile_test.cc +603 -0
- package/vendor/rocksdb/db/error_handler.cc +792 -0
- package/vendor/rocksdb/db/error_handler.h +124 -0
- package/vendor/rocksdb/db/error_handler_fs_test.cc +2862 -0
- package/vendor/rocksdb/db/event_helpers.cc +323 -0
- package/vendor/rocksdb/db/event_helpers.h +78 -0
- package/vendor/rocksdb/db/experimental.cc +144 -0
- package/vendor/rocksdb/db/external_sst_file_basic_test.cc +2084 -0
- package/vendor/rocksdb/db/external_sst_file_ingestion_job.cc +1104 -0
- package/vendor/rocksdb/db/external_sst_file_ingestion_job.h +238 -0
- package/vendor/rocksdb/db/external_sst_file_test.cc +2859 -0
- package/vendor/rocksdb/db/fault_injection_test.cc +637 -0
- package/vendor/rocksdb/db/file_indexer.cc +218 -0
- package/vendor/rocksdb/db/file_indexer.h +140 -0
- package/vendor/rocksdb/db/file_indexer_test.cc +352 -0
- package/vendor/rocksdb/db/filename_test.cc +241 -0
- package/vendor/rocksdb/db/flush_job.cc +1097 -0
- package/vendor/rocksdb/db/flush_job.h +200 -0
- package/vendor/rocksdb/db/flush_job_test.cc +743 -0
- package/vendor/rocksdb/db/flush_scheduler.cc +86 -0
- package/vendor/rocksdb/db/flush_scheduler.h +55 -0
- package/vendor/rocksdb/db/forward_iterator.cc +1070 -0
- package/vendor/rocksdb/db/forward_iterator.h +166 -0
- package/vendor/rocksdb/db/forward_iterator_bench.cc +378 -0
- package/vendor/rocksdb/db/history_trimming_iterator.h +95 -0
- package/vendor/rocksdb/db/import_column_family_job.cc +364 -0
- package/vendor/rocksdb/db/import_column_family_job.h +82 -0
- package/vendor/rocksdb/db/import_column_family_test.cc +748 -0
- package/vendor/rocksdb/db/internal_stats.cc +2121 -0
- package/vendor/rocksdb/db/internal_stats.h +875 -0
- package/vendor/rocksdb/db/job_context.h +237 -0
- package/vendor/rocksdb/db/kv_checksum.h +484 -0
- package/vendor/rocksdb/db/listener_test.cc +1598 -0
- package/vendor/rocksdb/db/log_format.h +55 -0
- package/vendor/rocksdb/db/log_reader.cc +934 -0
- package/vendor/rocksdb/db/log_reader.h +241 -0
- package/vendor/rocksdb/db/log_test.cc +1216 -0
- package/vendor/rocksdb/db/log_writer.cc +279 -0
- package/vendor/rocksdb/db/log_writer.h +144 -0
- package/vendor/rocksdb/db/logs_with_prep_tracker.cc +67 -0
- package/vendor/rocksdb/db/logs_with_prep_tracker.h +62 -0
- package/vendor/rocksdb/db/lookup_key.h +68 -0
- package/vendor/rocksdb/db/malloc_stats.cc +53 -0
- package/vendor/rocksdb/db/malloc_stats.h +22 -0
- package/vendor/rocksdb/db/manual_compaction_test.cc +308 -0
- package/vendor/rocksdb/db/memtable.cc +1675 -0
- package/vendor/rocksdb/db/memtable.h +660 -0
- package/vendor/rocksdb/db/memtable_list.cc +987 -0
- package/vendor/rocksdb/db/memtable_list.h +471 -0
- package/vendor/rocksdb/db/memtable_list_test.cc +1037 -0
- package/vendor/rocksdb/db/merge_context.h +147 -0
- package/vendor/rocksdb/db/merge_helper.cc +606 -0
- package/vendor/rocksdb/db/merge_helper.h +224 -0
- package/vendor/rocksdb/db/merge_helper_test.cc +298 -0
- package/vendor/rocksdb/db/merge_operator.cc +85 -0
- package/vendor/rocksdb/db/merge_test.cc +621 -0
- package/vendor/rocksdb/db/obsolete_files_test.cc +317 -0
- package/vendor/rocksdb/db/options_file_test.cc +110 -0
- package/vendor/rocksdb/db/output_validator.cc +33 -0
- package/vendor/rocksdb/db/output_validator.h +48 -0
- package/vendor/rocksdb/db/perf_context_test.cc +1158 -0
- package/vendor/rocksdb/db/periodic_task_scheduler.cc +111 -0
- package/vendor/rocksdb/db/periodic_task_scheduler.h +108 -0
- package/vendor/rocksdb/db/periodic_task_scheduler_test.cc +229 -0
- package/vendor/rocksdb/db/pinned_iterators_manager.h +92 -0
- package/vendor/rocksdb/db/plain_table_db_test.cc +1348 -0
- package/vendor/rocksdb/db/post_memtable_callback.h +25 -0
- package/vendor/rocksdb/db/pre_release_callback.h +37 -0
- package/vendor/rocksdb/db/prefix_test.cc +894 -0
- package/vendor/rocksdb/db/range_del_aggregator.cc +555 -0
- package/vendor/rocksdb/db/range_del_aggregator.h +478 -0
- package/vendor/rocksdb/db/range_del_aggregator_bench.cc +280 -0
- package/vendor/rocksdb/db/range_del_aggregator_test.cc +713 -0
- package/vendor/rocksdb/db/range_tombstone_fragmenter.cc +502 -0
- package/vendor/rocksdb/db/range_tombstone_fragmenter.h +356 -0
- package/vendor/rocksdb/db/range_tombstone_fragmenter_test.cc +555 -0
- package/vendor/rocksdb/db/read_callback.h +54 -0
- package/vendor/rocksdb/db/repair.cc +839 -0
- package/vendor/rocksdb/db/repair_test.cc +484 -0
- package/vendor/rocksdb/db/seqno_time_test.cc +994 -0
- package/vendor/rocksdb/db/seqno_to_time_mapping.cc +341 -0
- package/vendor/rocksdb/db/seqno_to_time_mapping.h +189 -0
- package/vendor/rocksdb/db/snapshot_checker.h +58 -0
- package/vendor/rocksdb/db/snapshot_impl.cc +25 -0
- package/vendor/rocksdb/db/snapshot_impl.h +239 -0
- package/vendor/rocksdb/db/table_cache.cc +710 -0
- package/vendor/rocksdb/db/table_cache.h +283 -0
- package/vendor/rocksdb/db/table_cache_sync_and_async.h +130 -0
- package/vendor/rocksdb/db/table_properties_collector.cc +74 -0
- package/vendor/rocksdb/db/table_properties_collector.h +177 -0
- package/vendor/rocksdb/db/table_properties_collector_test.cc +512 -0
- package/vendor/rocksdb/db/transaction_log_impl.cc +296 -0
- package/vendor/rocksdb/db/transaction_log_impl.h +128 -0
- package/vendor/rocksdb/db/trim_history_scheduler.cc +54 -0
- package/vendor/rocksdb/db/trim_history_scheduler.h +46 -0
- package/vendor/rocksdb/db/version_builder.cc +1426 -0
- package/vendor/rocksdb/db/version_builder.h +93 -0
- package/vendor/rocksdb/db/version_builder_test.cc +1840 -0
- package/vendor/rocksdb/db/version_edit.cc +1059 -0
- package/vendor/rocksdb/db/version_edit.h +702 -0
- package/vendor/rocksdb/db/version_edit_handler.cc +1017 -0
- package/vendor/rocksdb/db/version_edit_handler.h +334 -0
- package/vendor/rocksdb/db/version_edit_test.cc +732 -0
- package/vendor/rocksdb/db/version_set.cc +7286 -0
- package/vendor/rocksdb/db/version_set.h +1714 -0
- package/vendor/rocksdb/db/version_set_sync_and_async.h +172 -0
- package/vendor/rocksdb/db/version_set_test.cc +3659 -0
- package/vendor/rocksdb/db/version_util.h +72 -0
- package/vendor/rocksdb/db/wal_edit.cc +211 -0
- package/vendor/rocksdb/db/wal_edit.h +177 -0
- package/vendor/rocksdb/db/wal_edit_test.cc +213 -0
- package/vendor/rocksdb/db/wal_manager.cc +527 -0
- package/vendor/rocksdb/db/wal_manager.h +136 -0
- package/vendor/rocksdb/db/wal_manager_test.cc +336 -0
- package/vendor/rocksdb/db/wide/db_wide_basic_test.cc +1042 -0
- package/vendor/rocksdb/db/wide/wide_column_serialization.cc +182 -0
- package/vendor/rocksdb/db/wide/wide_column_serialization.h +77 -0
- package/vendor/rocksdb/db/wide/wide_column_serialization_test.cc +338 -0
- package/vendor/rocksdb/db/wide/wide_columns.cc +22 -0
- package/vendor/rocksdb/db/write_batch.cc +3142 -0
- package/vendor/rocksdb/db/write_batch_base.cc +94 -0
- package/vendor/rocksdb/db/write_batch_internal.h +401 -0
- package/vendor/rocksdb/db/write_batch_test.cc +1112 -0
- package/vendor/rocksdb/db/write_callback.h +27 -0
- package/vendor/rocksdb/db/write_callback_test.cc +454 -0
- package/vendor/rocksdb/db/write_controller.cc +121 -0
- package/vendor/rocksdb/db/write_controller.h +148 -0
- package/vendor/rocksdb/db/write_controller_test.cc +248 -0
- package/vendor/rocksdb/db/write_stall_stats.cc +179 -0
- package/vendor/rocksdb/db/write_stall_stats.h +47 -0
- package/vendor/rocksdb/db/write_thread.cc +844 -0
- package/vendor/rocksdb/db/write_thread.h +464 -0
- package/vendor/rocksdb/db_stress_tool/CMakeLists.txt +18 -0
- package/vendor/rocksdb/db_stress_tool/batched_ops_stress.cc +593 -0
- package/vendor/rocksdb/db_stress_tool/cf_consistency_stress.cc +892 -0
- package/vendor/rocksdb/db_stress_tool/db_stress.cc +25 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_common.cc +491 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_common.h +674 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_compaction_filter.h +96 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_driver.cc +216 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_driver.h +18 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_env_wrapper.h +78 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_gflags.cc +1094 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_listener.cc +189 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_listener.h +269 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_shared_state.cc +17 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_shared_state.h +437 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_stat.cc +17 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_stat.h +219 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_table_properties_collector.h +65 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_test_base.cc +3294 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_test_base.h +327 -0
- package/vendor/rocksdb/db_stress_tool/db_stress_tool.cc +371 -0
- package/vendor/rocksdb/db_stress_tool/expected_state.cc +780 -0
- package/vendor/rocksdb/db_stress_tool/expected_state.h +329 -0
- package/vendor/rocksdb/db_stress_tool/expected_value.cc +122 -0
- package/vendor/rocksdb/db_stress_tool/expected_value.h +206 -0
- package/vendor/rocksdb/db_stress_tool/multi_ops_txns_stress.cc +1761 -0
- package/vendor/rocksdb/db_stress_tool/multi_ops_txns_stress.h +446 -0
- package/vendor/rocksdb/db_stress_tool/no_batched_ops_stress.cc +1906 -0
- package/vendor/rocksdb/docs/CNAME +1 -0
- package/vendor/rocksdb/docs/CONTRIBUTING.md +115 -0
- package/vendor/rocksdb/docs/Gemfile +4 -0
- package/vendor/rocksdb/docs/LICENSE-DOCUMENTATION +385 -0
- package/vendor/rocksdb/docs/README.md +80 -0
- package/vendor/rocksdb/docs/TEMPLATE-INFORMATION.md +17 -0
- package/vendor/rocksdb/docs/_config.yml +85 -0
- package/vendor/rocksdb/docs/_data/authors.yml +81 -0
- package/vendor/rocksdb/docs/_data/features.yml +19 -0
- package/vendor/rocksdb/docs/_data/nav.yml +30 -0
- package/vendor/rocksdb/docs/_data/nav_docs.yml +3 -0
- package/vendor/rocksdb/docs/_data/powered_by.yml +1 -0
- package/vendor/rocksdb/docs/_data/powered_by_highlight.yml +1 -0
- package/vendor/rocksdb/docs/_data/promo.yml +6 -0
- package/vendor/rocksdb/docs/_docs/faq.md +48 -0
- package/vendor/rocksdb/docs/_docs/getting-started.md +78 -0
- package/vendor/rocksdb/docs/_includes/blog_pagination.html +28 -0
- package/vendor/rocksdb/docs/_includes/content/gridblocks.html +5 -0
- package/vendor/rocksdb/docs/_includes/content/items/gridblock.html +37 -0
- package/vendor/rocksdb/docs/_includes/doc.html +25 -0
- package/vendor/rocksdb/docs/_includes/doc_paging.html +0 -0
- package/vendor/rocksdb/docs/_includes/footer.html +34 -0
- package/vendor/rocksdb/docs/_includes/head.html +23 -0
- package/vendor/rocksdb/docs/_includes/header.html +19 -0
- package/vendor/rocksdb/docs/_includes/hero.html +0 -0
- package/vendor/rocksdb/docs/_includes/home_header.html +22 -0
- package/vendor/rocksdb/docs/_includes/katex_import.html +3 -0
- package/vendor/rocksdb/docs/_includes/katex_render.html +210 -0
- package/vendor/rocksdb/docs/_includes/nav/collection_nav.html +64 -0
- package/vendor/rocksdb/docs/_includes/nav/collection_nav_group.html +19 -0
- package/vendor/rocksdb/docs/_includes/nav/collection_nav_group_item.html +1 -0
- package/vendor/rocksdb/docs/_includes/nav/header_nav.html +30 -0
- package/vendor/rocksdb/docs/_includes/nav.html +37 -0
- package/vendor/rocksdb/docs/_includes/nav_search.html +15 -0
- package/vendor/rocksdb/docs/_includes/plugins/all_share.html +3 -0
- package/vendor/rocksdb/docs/_includes/plugins/ascii_cinema.html +2 -0
- package/vendor/rocksdb/docs/_includes/plugins/button.html +6 -0
- package/vendor/rocksdb/docs/_includes/plugins/github_star.html +4 -0
- package/vendor/rocksdb/docs/_includes/plugins/github_watch.html +4 -0
- package/vendor/rocksdb/docs/_includes/plugins/google_share.html +5 -0
- package/vendor/rocksdb/docs/_includes/plugins/iframe.html +6 -0
- package/vendor/rocksdb/docs/_includes/plugins/like_button.html +18 -0
- package/vendor/rocksdb/docs/_includes/plugins/plugin_row.html +5 -0
- package/vendor/rocksdb/docs/_includes/plugins/post_social_plugins.html +41 -0
- package/vendor/rocksdb/docs/_includes/plugins/slideshow.html +88 -0
- package/vendor/rocksdb/docs/_includes/plugins/twitter_follow.html +12 -0
- package/vendor/rocksdb/docs/_includes/plugins/twitter_share.html +11 -0
- package/vendor/rocksdb/docs/_includes/post.html +40 -0
- package/vendor/rocksdb/docs/_includes/powered_by.html +28 -0
- package/vendor/rocksdb/docs/_includes/social_plugins.html +31 -0
- package/vendor/rocksdb/docs/_includes/ui/button.html +1 -0
- package/vendor/rocksdb/docs/_layouts/basic.html +12 -0
- package/vendor/rocksdb/docs/_layouts/blog.html +11 -0
- package/vendor/rocksdb/docs/_layouts/blog_default.html +14 -0
- package/vendor/rocksdb/docs/_layouts/default.html +12 -0
- package/vendor/rocksdb/docs/_layouts/doc_default.html +14 -0
- package/vendor/rocksdb/docs/_layouts/doc_page.html +10 -0
- package/vendor/rocksdb/docs/_layouts/docs.html +5 -0
- package/vendor/rocksdb/docs/_layouts/home.html +26 -0
- package/vendor/rocksdb/docs/_layouts/page.html +3 -0
- package/vendor/rocksdb/docs/_layouts/plain.html +10 -0
- package/vendor/rocksdb/docs/_layouts/post.html +8 -0
- package/vendor/rocksdb/docs/_layouts/redirect.html +6 -0
- package/vendor/rocksdb/docs/_layouts/top-level.html +10 -0
- package/vendor/rocksdb/docs/_posts/2014-03-27-how-to-backup-rocksdb.markdown +135 -0
- package/vendor/rocksdb/docs/_posts/2014-03-27-how-to-persist-in-memory-rocksdb-database.markdown +54 -0
- package/vendor/rocksdb/docs/_posts/2014-04-02-the-1st-rocksdb-local-meetup-held-on-march-27-2014.markdown +53 -0
- package/vendor/rocksdb/docs/_posts/2014-04-07-rocksdb-2-8-release.markdown +40 -0
- package/vendor/rocksdb/docs/_posts/2014-04-21-indexing-sst-files-for-better-lookup-performance.markdown +28 -0
- package/vendor/rocksdb/docs/_posts/2014-05-14-lock.markdown +88 -0
- package/vendor/rocksdb/docs/_posts/2014-05-19-rocksdb-3-0-release.markdown +24 -0
- package/vendor/rocksdb/docs/_posts/2014-05-22-rocksdb-3-1-release.markdown +20 -0
- package/vendor/rocksdb/docs/_posts/2014-06-23-plaintable-a-new-file-format.markdown +47 -0
- package/vendor/rocksdb/docs/_posts/2014-06-27-avoid-expensive-locks-in-get.markdown +89 -0
- package/vendor/rocksdb/docs/_posts/2014-06-27-rocksdb-3-2-release.markdown +30 -0
- package/vendor/rocksdb/docs/_posts/2014-07-29-rocksdb-3-3-release.markdown +34 -0
- package/vendor/rocksdb/docs/_posts/2014-09-12-cuckoo.markdown +74 -0
- package/vendor/rocksdb/docs/_posts/2014-09-12-new-bloom-filter-format.markdown +52 -0
- package/vendor/rocksdb/docs/_posts/2014-09-15-rocksdb-3-5-release.markdown +38 -0
- package/vendor/rocksdb/docs/_posts/2015-01-16-migrating-from-leveldb-to-rocksdb-2.markdown +112 -0
- package/vendor/rocksdb/docs/_posts/2015-02-24-reading-rocksdb-options-from-a-file.markdown +41 -0
- package/vendor/rocksdb/docs/_posts/2015-02-27-write-batch-with-index.markdown +20 -0
- package/vendor/rocksdb/docs/_posts/2015-04-22-integrating-rocksdb-with-mongodb-2.markdown +16 -0
- package/vendor/rocksdb/docs/_posts/2015-06-12-rocksdb-in-osquery.markdown +10 -0
- package/vendor/rocksdb/docs/_posts/2015-07-15-rocksdb-2015-h2-roadmap.markdown +92 -0
- package/vendor/rocksdb/docs/_posts/2015-07-17-spatial-indexing-in-rocksdb.markdown +78 -0
- package/vendor/rocksdb/docs/_posts/2015-07-22-rocksdb-is-now-available-in-windows-platform.markdown +30 -0
- package/vendor/rocksdb/docs/_posts/2015-07-23-dynamic-level.markdown +29 -0
- package/vendor/rocksdb/docs/_posts/2015-10-27-getthreadlist.markdown +193 -0
- package/vendor/rocksdb/docs/_posts/2015-11-10-use-checkpoints-for-efficient-snapshots.markdown +45 -0
- package/vendor/rocksdb/docs/_posts/2015-11-16-analysis-file-read-latency-by-level.markdown +244 -0
- package/vendor/rocksdb/docs/_posts/2016-01-29-compaction_pri.markdown +51 -0
- package/vendor/rocksdb/docs/_posts/2016-02-24-rocksdb-4-2-release.markdown +41 -0
- package/vendor/rocksdb/docs/_posts/2016-02-25-rocksdb-ama.markdown +20 -0
- package/vendor/rocksdb/docs/_posts/2016-03-07-rocksdb-options-file.markdown +24 -0
- package/vendor/rocksdb/docs/_posts/2016-04-26-rocksdb-4-5-1-released.markdown +60 -0
- package/vendor/rocksdb/docs/_posts/2016-07-26-rocksdb-4-8-released.markdown +48 -0
- package/vendor/rocksdb/docs/_posts/2016-09-28-rocksdb-4-11-2-released.markdown +49 -0
- package/vendor/rocksdb/docs/_posts/2017-01-06-rocksdb-5-0-1-released.markdown +26 -0
- package/vendor/rocksdb/docs/_posts/2017-02-07-rocksdb-5-1-2-released.markdown +15 -0
- package/vendor/rocksdb/docs/_posts/2017-02-17-bulkoad-ingest-sst-file.markdown +50 -0
- package/vendor/rocksdb/docs/_posts/2017-03-02-rocksdb-5-2-1-released.markdown +22 -0
- package/vendor/rocksdb/docs/_posts/2017-05-12-partitioned-index-filter.markdown +34 -0
- package/vendor/rocksdb/docs/_posts/2017-05-14-core-local-stats.markdown +106 -0
- package/vendor/rocksdb/docs/_posts/2017-05-26-rocksdb-5-4-5-released.markdown +39 -0
- package/vendor/rocksdb/docs/_posts/2017-06-26-17-level-based-changes.markdown +60 -0
- package/vendor/rocksdb/docs/_posts/2017-06-29-rocksdb-5-5-1-released.markdown +22 -0
- package/vendor/rocksdb/docs/_posts/2017-07-25-rocksdb-5-6-1-released.markdown +22 -0
- package/vendor/rocksdb/docs/_posts/2017-08-24-pinnableslice.markdown +37 -0
- package/vendor/rocksdb/docs/_posts/2017-08-25-flushwal.markdown +26 -0
- package/vendor/rocksdb/docs/_posts/2017-09-28-rocksdb-5-8-released.markdown +25 -0
- package/vendor/rocksdb/docs/_posts/2017-12-18-17-auto-tuned-rate-limiter.markdown +28 -0
- package/vendor/rocksdb/docs/_posts/2017-12-19-write-prepared-txn.markdown +41 -0
- package/vendor/rocksdb/docs/_posts/2018-02-05-rocksdb-5-10-2-released.markdown +22 -0
- package/vendor/rocksdb/docs/_posts/2018-08-01-rocksdb-tuning-advisor.markdown +58 -0
- package/vendor/rocksdb/docs/_posts/2018-08-23-data-block-hash-index.markdown +118 -0
- package/vendor/rocksdb/docs/_posts/2018-11-21-delete-range.markdown +292 -0
- package/vendor/rocksdb/docs/_posts/2019-03-08-format-version-4.markdown +36 -0
- package/vendor/rocksdb/docs/_posts/2019-08-15-unordered-write.markdown +56 -0
- package/vendor/rocksdb/docs/_posts/2021-04-12-universal-improvements.markdown +46 -0
- package/vendor/rocksdb/docs/_posts/2021-05-26-integrated-blob-db.markdown +101 -0
- package/vendor/rocksdb/docs/_posts/2021-05-26-online-validation.markdown +17 -0
- package/vendor/rocksdb/docs/_posts/2021-05-27-rocksdb-secondary-cache.markdown +195 -0
- package/vendor/rocksdb/docs/_posts/2021-05-31-dictionary-compression.markdown +157 -0
- package/vendor/rocksdb/docs/_posts/2021-12-29-ribbon-filter.markdown +281 -0
- package/vendor/rocksdb/docs/_posts/2022-07-18-per-key-value-checksum.markdown +142 -0
- package/vendor/rocksdb/docs/_posts/2022-10-05-lost-buffered-write-recovery.markdown +123 -0
- package/vendor/rocksdb/docs/_posts/2022-10-07-asynchronous-io-in-rocksdb.markdown +133 -0
- package/vendor/rocksdb/docs/_posts/2022-10-31-align-compaction-output-file.markdown +107 -0
- package/vendor/rocksdb/docs/_posts/2022-11-09-time-aware-tiered-storage.markdown +121 -0
- package/vendor/rocksdb/docs/_sass/_base.scss +492 -0
- package/vendor/rocksdb/docs/_sass/_blog.scss +47 -0
- package/vendor/rocksdb/docs/_sass/_buttons.scss +47 -0
- package/vendor/rocksdb/docs/_sass/_footer.scss +82 -0
- package/vendor/rocksdb/docs/_sass/_gridBlock.scss +115 -0
- package/vendor/rocksdb/docs/_sass/_header.scss +139 -0
- package/vendor/rocksdb/docs/_sass/_poweredby.scss +69 -0
- package/vendor/rocksdb/docs/_sass/_promo.scss +55 -0
- package/vendor/rocksdb/docs/_sass/_react_docs_nav.scss +332 -0
- package/vendor/rocksdb/docs/_sass/_react_header_nav.scss +141 -0
- package/vendor/rocksdb/docs/_sass/_reset.scss +43 -0
- package/vendor/rocksdb/docs/_sass/_search.scss +142 -0
- package/vendor/rocksdb/docs/_sass/_slideshow.scss +48 -0
- package/vendor/rocksdb/docs/_sass/_syntax-highlighting.scss +129 -0
- package/vendor/rocksdb/docs/_sass/_tables.scss +47 -0
- package/vendor/rocksdb/docs/_top-level/support.md +22 -0
- package/vendor/rocksdb/docs/blog/all.html +20 -0
- package/vendor/rocksdb/docs/blog/index.html +12 -0
- package/vendor/rocksdb/docs/css/main.scss +159 -0
- package/vendor/rocksdb/docs/doc-type-examples/2016-04-07-blog-post-example.md +21 -0
- package/vendor/rocksdb/docs/doc-type-examples/docs-hello-world.md +12 -0
- package/vendor/rocksdb/docs/doc-type-examples/top-level-example.md +8 -0
- package/vendor/rocksdb/docs/docs/index.html +6 -0
- package/vendor/rocksdb/docs/feed.xml +30 -0
- package/vendor/rocksdb/docs/index.md +9 -0
- package/vendor/rocksdb/docs/static/favicon.png +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Black.woff +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Black.woff2 +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-BlackItalic.woff +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-BlackItalic.woff2 +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Italic.woff +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Italic.woff2 +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Light.woff +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Light.woff2 +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Regular.woff +0 -0
- package/vendor/rocksdb/docs/static/fonts/LatoLatin-Regular.woff2 +0 -0
- package/vendor/rocksdb/docs/static/images/Resize-of-20140327_200754-300x225.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/align-compaction-output/compaction_output_file_size_compare.png +0 -0
- package/vendor/rocksdb/docs/static/images/align-compaction-output/file_cut_align.png +0 -0
- package/vendor/rocksdb/docs/static/images/align-compaction-output/file_cut_normal.png +0 -0
- package/vendor/rocksdb/docs/static/images/align-compaction-output/file_cut_trival_move.png +0 -0
- package/vendor/rocksdb/docs/static/images/align-compaction-output/file_size_compare.png +0 -0
- package/vendor/rocksdb/docs/static/images/align-compaction-output/write_amp_compare.png +0 -0
- package/vendor/rocksdb/docs/static/images/asynchronous-io/mget_async.png +0 -0
- package/vendor/rocksdb/docs/static/images/asynchronous-io/scan_async.png +0 -0
- package/vendor/rocksdb/docs/static/images/binaryseek.png +0 -0
- package/vendor/rocksdb/docs/static/images/bloom_fp_vs_bpk.png +0 -0
- package/vendor/rocksdb/docs/static/images/compaction/full-range.png +0 -0
- package/vendor/rocksdb/docs/static/images/compaction/l0-l1-contend.png +0 -0
- package/vendor/rocksdb/docs/static/images/compaction/l1-l2-contend.png +0 -0
- package/vendor/rocksdb/docs/static/images/compaction/part-range-old.png +0 -0
- package/vendor/rocksdb/docs/static/images/data-block-hash-index/block-format-binary-seek.png +0 -0
- package/vendor/rocksdb/docs/static/images/data-block-hash-index/block-format-hash-index.png +0 -0
- package/vendor/rocksdb/docs/static/images/data-block-hash-index/hash-index-data-structure.png +0 -0
- package/vendor/rocksdb/docs/static/images/data-block-hash-index/perf-cache-miss.png +0 -0
- package/vendor/rocksdb/docs/static/images/data-block-hash-index/perf-throughput.png +0 -0
- package/vendor/rocksdb/docs/static/images/delrange/delrange_collapsed.png +0 -0
- package/vendor/rocksdb/docs/static/images/delrange/delrange_key_schema.png +0 -0
- package/vendor/rocksdb/docs/static/images/delrange/delrange_sst_blocks.png +0 -0
- package/vendor/rocksdb/docs/static/images/delrange/delrange_uncollapsed.png +0 -0
- package/vendor/rocksdb/docs/static/images/delrange/delrange_write_path.png +0 -0
- package/vendor/rocksdb/docs/static/images/dictcmp/dictcmp_raw_sampled.png +0 -0
- package/vendor/rocksdb/docs/static/images/dictcmp/dictcmp_sst_blocks.png +0 -0
- package/vendor/rocksdb/docs/static/images/dictcmp/dictcmp_zstd_trained.png +0 -0
- package/vendor/rocksdb/docs/static/images/integrated-blob-db/BlobDB_Benchmarks_Legacy_Vs_Integrated.png +0 -0
- package/vendor/rocksdb/docs/static/images/integrated-blob-db/BlobDB_Benchmarks_RW_RO_Perf.png +0 -0
- package/vendor/rocksdb/docs/static/images/integrated-blob-db/BlobDB_Benchmarks_Write_Amp.png +0 -0
- package/vendor/rocksdb/docs/static/images/integrated-blob-db/BlobDB_Benchmarks_Write_Perf.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/Memtable-entry.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/Memtable-write.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/ProtInfo-Memtable.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/ProtInfo-Writebatch-to-Memtable.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/ProtInfo-Writebatch.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/WAL-fragment.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/WAL-read.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/WAL-write.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/Write-batch.png +0 -0
- package/vendor/rocksdb/docs/static/images/kv-checksum/Writebatch-write.png +0 -0
- package/vendor/rocksdb/docs/static/images/lost-buffered-write-recovery/angry-cat.png +0 -0
- package/vendor/rocksdb/docs/static/images/lost-buffered-write-recovery/basic-setup.png +0 -0
- package/vendor/rocksdb/docs/static/images/lost-buffered-write-recovery/happy-cat.png +0 -0
- package/vendor/rocksdb/docs/static/images/lost-buffered-write-recovery/replay-extension.png +0 -0
- package/vendor/rocksdb/docs/static/images/lost-buffered-write-recovery/test-fs-writable-file.png +0 -0
- package/vendor/rocksdb/docs/static/images/lost-buffered-write-recovery/trace-extension.png +0 -0
- package/vendor/rocksdb/docs/static/images/pcache-blockindex.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/pcache-fileindex.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/pcache-filelayout.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/pcache-readiopath.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/pcache-tieredstorage.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/pcache-writeiopath.jpg +0 -0
- package/vendor/rocksdb/docs/static/images/promo-adapt.svg +8 -0
- package/vendor/rocksdb/docs/static/images/promo-flash.svg +28 -0
- package/vendor/rocksdb/docs/static/images/promo-operations.svg +6 -0
- package/vendor/rocksdb/docs/static/images/promo-performance.svg +134 -0
- package/vendor/rocksdb/docs/static/images/rate-limiter/auto-tuned-write-KBps-series.png +0 -0
- package/vendor/rocksdb/docs/static/images/rate-limiter/write-KBps-cdf.png +0 -0
- package/vendor/rocksdb/docs/static/images/rate-limiter/write-KBps-series.png +0 -0
- package/vendor/rocksdb/docs/static/images/rocksdb-secondary-cache/Mixgraph_hit_rate.png +0 -0
- package/vendor/rocksdb/docs/static/images/rocksdb-secondary-cache/Mixgraph_throughput.png +0 -0
- package/vendor/rocksdb/docs/static/images/rocksdb-secondary-cache/arch_diagram.png +0 -0
- package/vendor/rocksdb/docs/static/images/rocksdb-secondary-cache/insert_flow.png +0 -0
- package/vendor/rocksdb/docs/static/images/rocksdb-secondary-cache/lookup_flow.png +0 -0
- package/vendor/rocksdb/docs/static/images/time-aware-tiered-storage/compaction_moving_up_conflict.png +0 -0
- package/vendor/rocksdb/docs/static/images/time-aware-tiered-storage/per_key_placement_compaction.png +0 -0
- package/vendor/rocksdb/docs/static/images/time-aware-tiered-storage/tiered_storage_design.png +0 -0
- package/vendor/rocksdb/docs/static/images/time-aware-tiered-storage/tiered_storage_overview.png +0 -0
- package/vendor/rocksdb/docs/static/images/time-aware-tiered-storage/tiered_storage_problem.png +0 -0
- package/vendor/rocksdb/docs/static/images/tree_example1.png +0 -0
- package/vendor/rocksdb/docs/static/logo.svg +76 -0
- package/vendor/rocksdb/docs/static/og_image.png +0 -0
- package/vendor/rocksdb/env/composite_env.cc +534 -0
- package/vendor/rocksdb/env/composite_env_wrapper.h +378 -0
- package/vendor/rocksdb/env/emulated_clock.h +114 -0
- package/vendor/rocksdb/env/env.cc +1233 -0
- package/vendor/rocksdb/env/env_basic_test.cc +397 -0
- package/vendor/rocksdb/env/env_chroot.cc +148 -0
- package/vendor/rocksdb/env/env_chroot.h +55 -0
- package/vendor/rocksdb/env/env_encryption.cc +1346 -0
- package/vendor/rocksdb/env/env_encryption_ctr.h +114 -0
- package/vendor/rocksdb/env/env_posix.cc +524 -0
- package/vendor/rocksdb/env/env_test.cc +3577 -0
- package/vendor/rocksdb/env/file_system.cc +277 -0
- package/vendor/rocksdb/env/file_system_tracer.cc +564 -0
- package/vendor/rocksdb/env/file_system_tracer.h +461 -0
- package/vendor/rocksdb/env/fs_posix.cc +1284 -0
- package/vendor/rocksdb/env/fs_readonly.h +105 -0
- package/vendor/rocksdb/env/fs_remap.cc +341 -0
- package/vendor/rocksdb/env/fs_remap.h +137 -0
- package/vendor/rocksdb/env/io_posix.cc +1733 -0
- package/vendor/rocksdb/env/io_posix.h +523 -0
- package/vendor/rocksdb/env/io_posix_test.cc +141 -0
- package/vendor/rocksdb/env/mock_env.cc +1058 -0
- package/vendor/rocksdb/env/mock_env.h +144 -0
- package/vendor/rocksdb/env/mock_env_test.cc +84 -0
- package/vendor/rocksdb/env/unique_id_gen.cc +164 -0
- package/vendor/rocksdb/env/unique_id_gen.h +85 -0
- package/vendor/rocksdb/examples/CMakeLists.txt +45 -0
- package/vendor/rocksdb/examples/Makefile +58 -0
- package/vendor/rocksdb/examples/README.md +2 -0
- package/vendor/rocksdb/examples/c_simple_example.c +96 -0
- package/vendor/rocksdb/examples/column_families_example.cc +88 -0
- package/vendor/rocksdb/examples/compact_files_example.cc +177 -0
- package/vendor/rocksdb/examples/compaction_filter_example.cc +96 -0
- package/vendor/rocksdb/examples/multi_processes_example.cc +393 -0
- package/vendor/rocksdb/examples/optimistic_transaction_example.cc +190 -0
- package/vendor/rocksdb/examples/options_file_example.cc +132 -0
- package/vendor/rocksdb/examples/rocksdb_backup_restore_example.cc +99 -0
- package/vendor/rocksdb/examples/rocksdb_option_file_example.ini +142 -0
- package/vendor/rocksdb/examples/simple_example.cc +93 -0
- package/vendor/rocksdb/examples/transaction_example.cc +196 -0
- package/vendor/rocksdb/file/delete_scheduler.cc +409 -0
- package/vendor/rocksdb/file/delete_scheduler.h +147 -0
- package/vendor/rocksdb/file/delete_scheduler_test.cc +717 -0
- package/vendor/rocksdb/file/file_prefetch_buffer.cc +955 -0
- package/vendor/rocksdb/file/file_prefetch_buffer.h +471 -0
- package/vendor/rocksdb/file/file_util.cc +277 -0
- package/vendor/rocksdb/file/file_util.h +91 -0
- package/vendor/rocksdb/file/filename.cc +523 -0
- package/vendor/rocksdb/file/filename.h +188 -0
- package/vendor/rocksdb/file/line_file_reader.cc +73 -0
- package/vendor/rocksdb/file/line_file_reader.h +60 -0
- package/vendor/rocksdb/file/prefetch_test.cc +2374 -0
- package/vendor/rocksdb/file/random_access_file_reader.cc +599 -0
- package/vendor/rocksdb/file/random_access_file_reader.h +210 -0
- package/vendor/rocksdb/file/random_access_file_reader_test.cc +479 -0
- package/vendor/rocksdb/file/read_write_util.cc +33 -0
- package/vendor/rocksdb/file/read_write_util.h +31 -0
- package/vendor/rocksdb/file/readahead_file_info.h +33 -0
- package/vendor/rocksdb/file/readahead_raf.cc +169 -0
- package/vendor/rocksdb/file/readahead_raf.h +29 -0
- package/vendor/rocksdb/file/sequence_file_reader.cc +320 -0
- package/vendor/rocksdb/file/sequence_file_reader.h +119 -0
- package/vendor/rocksdb/file/sst_file_manager_impl.cc +507 -0
- package/vendor/rocksdb/file/sst_file_manager_impl.h +193 -0
- package/vendor/rocksdb/file/writable_file_writer.cc +989 -0
- package/vendor/rocksdb/file/writable_file_writer.h +320 -0
- package/vendor/rocksdb/fuzz/Makefile +67 -0
- package/vendor/rocksdb/fuzz/README.md +165 -0
- package/vendor/rocksdb/fuzz/db_fuzzer.cc +172 -0
- package/vendor/rocksdb/fuzz/db_map_fuzzer.cc +107 -0
- package/vendor/rocksdb/fuzz/proto/db_operation.proto +28 -0
- package/vendor/rocksdb/fuzz/sst_file_writer_fuzzer.cc +210 -0
- package/vendor/rocksdb/fuzz/util.h +29 -0
- package/vendor/rocksdb/include/rocksdb/advanced_cache.h +623 -0
- package/vendor/rocksdb/include/rocksdb/advanced_options.h +1177 -0
- package/vendor/rocksdb/include/rocksdb/block_cache_trace_writer.h +149 -0
- package/vendor/rocksdb/include/rocksdb/c.h +2864 -0
- package/vendor/rocksdb/include/rocksdb/cache.h +442 -0
- package/vendor/rocksdb/include/rocksdb/cache_bench_tool.h +14 -0
- package/vendor/rocksdb/include/rocksdb/cleanable.h +128 -0
- package/vendor/rocksdb/include/rocksdb/compaction_filter.h +363 -0
- package/vendor/rocksdb/include/rocksdb/compaction_job_stats.h +109 -0
- package/vendor/rocksdb/include/rocksdb/comparator.h +164 -0
- package/vendor/rocksdb/include/rocksdb/compression_type.h +40 -0
- package/vendor/rocksdb/include/rocksdb/concurrent_task_limiter.h +51 -0
- package/vendor/rocksdb/include/rocksdb/configurable.h +390 -0
- package/vendor/rocksdb/include/rocksdb/convenience.h +466 -0
- package/vendor/rocksdb/include/rocksdb/customizable.h +229 -0
- package/vendor/rocksdb/include/rocksdb/data_structure.h +186 -0
- package/vendor/rocksdb/include/rocksdb/db.h +1980 -0
- package/vendor/rocksdb/include/rocksdb/db_bench_tool.h +11 -0
- package/vendor/rocksdb/include/rocksdb/db_dump_tool.h +43 -0
- package/vendor/rocksdb/include/rocksdb/db_stress_tool.h +11 -0
- package/vendor/rocksdb/include/rocksdb/env.h +1882 -0
- package/vendor/rocksdb/include/rocksdb/env_encryption.h +463 -0
- package/vendor/rocksdb/include/rocksdb/experimental.h +56 -0
- package/vendor/rocksdb/include/rocksdb/file_checksum.h +146 -0
- package/vendor/rocksdb/include/rocksdb/file_system.h +1849 -0
- package/vendor/rocksdb/include/rocksdb/filter_policy.h +206 -0
- package/vendor/rocksdb/include/rocksdb/flush_block_policy.h +75 -0
- package/vendor/rocksdb/include/rocksdb/functor_wrapper.h +56 -0
- package/vendor/rocksdb/include/rocksdb/io_status.h +244 -0
- package/vendor/rocksdb/include/rocksdb/iostats_context.h +98 -0
- package/vendor/rocksdb/include/rocksdb/iterator.h +144 -0
- package/vendor/rocksdb/include/rocksdb/ldb_tool.h +42 -0
- package/vendor/rocksdb/include/rocksdb/listener.h +840 -0
- package/vendor/rocksdb/include/rocksdb/memory_allocator.h +87 -0
- package/vendor/rocksdb/include/rocksdb/memtablerep.h +421 -0
- package/vendor/rocksdb/include/rocksdb/merge_operator.h +286 -0
- package/vendor/rocksdb/include/rocksdb/metadata.h +258 -0
- package/vendor/rocksdb/include/rocksdb/options.h +2083 -0
- package/vendor/rocksdb/include/rocksdb/perf_context.h +314 -0
- package/vendor/rocksdb/include/rocksdb/perf_level.h +36 -0
- package/vendor/rocksdb/include/rocksdb/persistent_cache.h +74 -0
- package/vendor/rocksdb/include/rocksdb/port_defs.h +22 -0
- package/vendor/rocksdb/include/rocksdb/rate_limiter.h +159 -0
- package/vendor/rocksdb/include/rocksdb/rocksdb_namespace.h +16 -0
- package/vendor/rocksdb/include/rocksdb/secondary_cache.h +139 -0
- package/vendor/rocksdb/include/rocksdb/slice.h +264 -0
- package/vendor/rocksdb/include/rocksdb/slice_transform.h +135 -0
- package/vendor/rocksdb/include/rocksdb/snapshot.h +53 -0
- package/vendor/rocksdb/include/rocksdb/sst_dump_tool.h +17 -0
- package/vendor/rocksdb/include/rocksdb/sst_file_manager.h +136 -0
- package/vendor/rocksdb/include/rocksdb/sst_file_reader.h +45 -0
- package/vendor/rocksdb/include/rocksdb/sst_file_writer.h +189 -0
- package/vendor/rocksdb/include/rocksdb/sst_partitioner.h +142 -0
- package/vendor/rocksdb/include/rocksdb/statistics.h +757 -0
- package/vendor/rocksdb/include/rocksdb/stats_history.h +70 -0
- package/vendor/rocksdb/include/rocksdb/status.h +574 -0
- package/vendor/rocksdb/include/rocksdb/system_clock.h +114 -0
- package/vendor/rocksdb/include/rocksdb/table.h +927 -0
- package/vendor/rocksdb/include/rocksdb/table_properties.h +332 -0
- package/vendor/rocksdb/include/rocksdb/table_reader_caller.h +41 -0
- package/vendor/rocksdb/include/rocksdb/thread_status.h +190 -0
- package/vendor/rocksdb/include/rocksdb/threadpool.h +67 -0
- package/vendor/rocksdb/include/rocksdb/trace_reader_writer.h +52 -0
- package/vendor/rocksdb/include/rocksdb/trace_record.h +248 -0
- package/vendor/rocksdb/include/rocksdb/trace_record_result.h +187 -0
- package/vendor/rocksdb/include/rocksdb/transaction_log.h +122 -0
- package/vendor/rocksdb/include/rocksdb/types.h +94 -0
- package/vendor/rocksdb/include/rocksdb/unique_id.h +55 -0
- package/vendor/rocksdb/include/rocksdb/universal_compaction.h +96 -0
- package/vendor/rocksdb/include/rocksdb/utilities/agg_merge.h +138 -0
- package/vendor/rocksdb/include/rocksdb/utilities/backup_engine.h +689 -0
- package/vendor/rocksdb/include/rocksdb/utilities/cache_dump_load.h +140 -0
- package/vendor/rocksdb/include/rocksdb/utilities/checkpoint.h +63 -0
- package/vendor/rocksdb/include/rocksdb/utilities/convenience.h +10 -0
- package/vendor/rocksdb/include/rocksdb/utilities/customizable_util.h +322 -0
- package/vendor/rocksdb/include/rocksdb/utilities/db_ttl.h +70 -0
- package/vendor/rocksdb/include/rocksdb/utilities/debug.h +46 -0
- package/vendor/rocksdb/include/rocksdb/utilities/env_mirror.h +179 -0
- package/vendor/rocksdb/include/rocksdb/utilities/info_log_finder.h +19 -0
- package/vendor/rocksdb/include/rocksdb/utilities/ldb_cmd.h +316 -0
- package/vendor/rocksdb/include/rocksdb/utilities/ldb_cmd_execute_result.h +75 -0
- package/vendor/rocksdb/include/rocksdb/utilities/leveldb_options.h +145 -0
- package/vendor/rocksdb/include/rocksdb/utilities/lua/rocks_lua_custom_library.h +43 -0
- package/vendor/rocksdb/include/rocksdb/utilities/lua/rocks_lua_util.h +55 -0
- package/vendor/rocksdb/include/rocksdb/utilities/memory_util.h +48 -0
- package/vendor/rocksdb/include/rocksdb/utilities/object_registry.h +583 -0
- package/vendor/rocksdb/include/rocksdb/utilities/optimistic_transaction_db.h +98 -0
- package/vendor/rocksdb/include/rocksdb/utilities/option_change_migration.h +24 -0
- package/vendor/rocksdb/include/rocksdb/utilities/options_type.h +1221 -0
- package/vendor/rocksdb/include/rocksdb/utilities/options_util.h +105 -0
- package/vendor/rocksdb/include/rocksdb/utilities/replayer.h +85 -0
- package/vendor/rocksdb/include/rocksdb/utilities/sim_cache.h +93 -0
- package/vendor/rocksdb/include/rocksdb/utilities/stackable_db.h +587 -0
- package/vendor/rocksdb/include/rocksdb/utilities/table_properties_collectors.h +88 -0
- package/vendor/rocksdb/include/rocksdb/utilities/transaction.h +683 -0
- package/vendor/rocksdb/include/rocksdb/utilities/transaction_db.h +506 -0
- package/vendor/rocksdb/include/rocksdb/utilities/transaction_db_mutex.h +89 -0
- package/vendor/rocksdb/include/rocksdb/utilities/write_batch_with_index.h +307 -0
- package/vendor/rocksdb/include/rocksdb/version.h +43 -0
- package/vendor/rocksdb/include/rocksdb/wal_filter.h +111 -0
- package/vendor/rocksdb/include/rocksdb/wide_columns.h +210 -0
- package/vendor/rocksdb/include/rocksdb/write_batch.h +494 -0
- package/vendor/rocksdb/include/rocksdb/write_batch_base.h +144 -0
- package/vendor/rocksdb/include/rocksdb/write_buffer_manager.h +183 -0
- package/vendor/rocksdb/issue_template.md +7 -0
- package/vendor/rocksdb/java/CMakeLists.txt +549 -0
- package/vendor/rocksdb/java/GetBenchmarks.md +161 -0
- package/vendor/rocksdb/java/HISTORY-JAVA.md +86 -0
- package/vendor/rocksdb/java/Makefile +453 -0
- package/vendor/rocksdb/java/RELEASE.md +59 -0
- package/vendor/rocksdb/java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java +1640 -0
- package/vendor/rocksdb/java/crossbuild/Vagrantfile +51 -0
- package/vendor/rocksdb/java/crossbuild/build-linux-alpine.sh +70 -0
- package/vendor/rocksdb/java/crossbuild/build-linux-centos.sh +38 -0
- package/vendor/rocksdb/java/crossbuild/build-linux.sh +15 -0
- package/vendor/rocksdb/java/crossbuild/docker-build-linux-alpine.sh +17 -0
- package/vendor/rocksdb/java/crossbuild/docker-build-linux-centos.sh +38 -0
- package/vendor/rocksdb/java/jdb_bench.sh +13 -0
- package/vendor/rocksdb/java/jmh/LICENSE-HEADER.txt +5 -0
- package/vendor/rocksdb/java/jmh/README.md +24 -0
- package/vendor/rocksdb/java/jmh/pom.xml +138 -0
- package/vendor/rocksdb/java/jmh/src/main/java/org/rocksdb/jmh/ComparatorBenchmarks.java +139 -0
- package/vendor/rocksdb/java/jmh/src/main/java/org/rocksdb/jmh/GetBenchmarks.java +215 -0
- package/vendor/rocksdb/java/jmh/src/main/java/org/rocksdb/jmh/MultiGetBenchmarks.java +214 -0
- package/vendor/rocksdb/java/jmh/src/main/java/org/rocksdb/jmh/PutBenchmarks.java +112 -0
- package/vendor/rocksdb/java/jmh/src/main/java/org/rocksdb/util/FileUtils.java +59 -0
- package/vendor/rocksdb/java/jmh/src/main/java/org/rocksdb/util/KVUtils.java +72 -0
- package/vendor/rocksdb/java/pom.xml.template +178 -0
- package/vendor/rocksdb/java/rocksjni/backup_engine_options.cc +365 -0
- package/vendor/rocksdb/java/rocksjni/backupenginejni.cc +279 -0
- package/vendor/rocksdb/java/rocksjni/cache.cc +34 -0
- package/vendor/rocksdb/java/rocksjni/cassandra_compactionfilterjni.cc +25 -0
- package/vendor/rocksdb/java/rocksjni/cassandra_value_operator.cc +50 -0
- package/vendor/rocksdb/java/rocksjni/checkpoint.cc +71 -0
- package/vendor/rocksdb/java/rocksjni/clock_cache.cc +42 -0
- package/vendor/rocksdb/java/rocksjni/columnfamilyhandle.cc +72 -0
- package/vendor/rocksdb/java/rocksjni/compact_range_options.cc +222 -0
- package/vendor/rocksdb/java/rocksjni/compaction_filter.cc +29 -0
- package/vendor/rocksdb/java/rocksjni/compaction_filter_factory.cc +42 -0
- package/vendor/rocksdb/java/rocksjni/compaction_filter_factory_jnicallback.cc +79 -0
- package/vendor/rocksdb/java/rocksjni/compaction_filter_factory_jnicallback.h +37 -0
- package/vendor/rocksdb/java/rocksjni/compaction_job_info.cc +230 -0
- package/vendor/rocksdb/java/rocksjni/compaction_job_stats.cc +345 -0
- package/vendor/rocksdb/java/rocksjni/compaction_options.cc +112 -0
- package/vendor/rocksdb/java/rocksjni/compaction_options_fifo.cc +83 -0
- package/vendor/rocksdb/java/rocksjni/compaction_options_universal.cc +209 -0
- package/vendor/rocksdb/java/rocksjni/comparator.cc +60 -0
- package/vendor/rocksdb/java/rocksjni/comparatorjnicallback.cc +647 -0
- package/vendor/rocksdb/java/rocksjni/comparatorjnicallback.h +137 -0
- package/vendor/rocksdb/java/rocksjni/compression_options.cc +214 -0
- package/vendor/rocksdb/java/rocksjni/concurrent_task_limiter.cc +97 -0
- package/vendor/rocksdb/java/rocksjni/config_options.cc +103 -0
- package/vendor/rocksdb/java/rocksjni/cplusplus_to_java_convert.h +37 -0
- package/vendor/rocksdb/java/rocksjni/env.cc +205 -0
- package/vendor/rocksdb/java/rocksjni/env_options.cc +305 -0
- package/vendor/rocksdb/java/rocksjni/event_listener.cc +44 -0
- package/vendor/rocksdb/java/rocksjni/event_listener_jnicallback.cc +502 -0
- package/vendor/rocksdb/java/rocksjni/event_listener_jnicallback.h +122 -0
- package/vendor/rocksdb/java/rocksjni/filter.cc +46 -0
- package/vendor/rocksdb/java/rocksjni/ingest_external_file_options.cc +199 -0
- package/vendor/rocksdb/java/rocksjni/iterator.cc +340 -0
- package/vendor/rocksdb/java/rocksjni/jnicallback.cc +54 -0
- package/vendor/rocksdb/java/rocksjni/jnicallback.h +32 -0
- package/vendor/rocksdb/java/rocksjni/loggerjnicallback.cc +299 -0
- package/vendor/rocksdb/java/rocksjni/loggerjnicallback.h +51 -0
- package/vendor/rocksdb/java/rocksjni/lru_cache.cc +49 -0
- package/vendor/rocksdb/java/rocksjni/memory_util.cc +100 -0
- package/vendor/rocksdb/java/rocksjni/memtablejni.cc +94 -0
- package/vendor/rocksdb/java/rocksjni/merge_operator.cc +98 -0
- package/vendor/rocksdb/java/rocksjni/native_comparator_wrapper_test.cc +45 -0
- package/vendor/rocksdb/java/rocksjni/optimistic_transaction_db.cc +270 -0
- package/vendor/rocksdb/java/rocksjni/optimistic_transaction_options.cc +78 -0
- package/vendor/rocksdb/java/rocksjni/options.cc +8695 -0
- package/vendor/rocksdb/java/rocksjni/options_util.cc +139 -0
- package/vendor/rocksdb/java/rocksjni/persistent_cache.cc +60 -0
- package/vendor/rocksdb/java/rocksjni/portal.h +8706 -0
- package/vendor/rocksdb/java/rocksjni/ratelimiterjni.cc +128 -0
- package/vendor/rocksdb/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc +24 -0
- package/vendor/rocksdb/java/rocksjni/restorejni.cc +42 -0
- package/vendor/rocksdb/java/rocksjni/rocks_callback_object.cc +30 -0
- package/vendor/rocksdb/java/rocksjni/rocksdb_exception_test.cc +81 -0
- package/vendor/rocksdb/java/rocksjni/rocksjni.cc +3957 -0
- package/vendor/rocksdb/java/rocksjni/slice.cc +374 -0
- package/vendor/rocksdb/java/rocksjni/snapshot.cc +27 -0
- package/vendor/rocksdb/java/rocksjni/sst_file_manager.cc +250 -0
- package/vendor/rocksdb/java/rocksjni/sst_file_reader_iterator.cc +373 -0
- package/vendor/rocksdb/java/rocksjni/sst_file_readerjni.cc +118 -0
- package/vendor/rocksdb/java/rocksjni/sst_file_writerjni.cc +310 -0
- package/vendor/rocksdb/java/rocksjni/sst_partitioner.cc +43 -0
- package/vendor/rocksdb/java/rocksjni/statistics.cc +268 -0
- package/vendor/rocksdb/java/rocksjni/statisticsjni.cc +31 -0
- package/vendor/rocksdb/java/rocksjni/statisticsjni.h +34 -0
- package/vendor/rocksdb/java/rocksjni/table.cc +145 -0
- package/vendor/rocksdb/java/rocksjni/table_filter.cc +27 -0
- package/vendor/rocksdb/java/rocksjni/table_filter_jnicallback.cc +66 -0
- package/vendor/rocksdb/java/rocksjni/table_filter_jnicallback.h +36 -0
- package/vendor/rocksdb/java/rocksjni/testable_event_listener.cc +219 -0
- package/vendor/rocksdb/java/rocksjni/thread_status.cc +125 -0
- package/vendor/rocksdb/java/rocksjni/trace_writer.cc +24 -0
- package/vendor/rocksdb/java/rocksjni/trace_writer_jnicallback.cc +118 -0
- package/vendor/rocksdb/java/rocksjni/trace_writer_jnicallback.h +36 -0
- package/vendor/rocksdb/java/rocksjni/transaction.cc +1655 -0
- package/vendor/rocksdb/java/rocksjni/transaction_db.cc +451 -0
- package/vendor/rocksdb/java/rocksjni/transaction_db_options.cc +169 -0
- package/vendor/rocksdb/java/rocksjni/transaction_log.cc +80 -0
- package/vendor/rocksdb/java/rocksjni/transaction_notifier.cc +44 -0
- package/vendor/rocksdb/java/rocksjni/transaction_notifier_jnicallback.cc +42 -0
- package/vendor/rocksdb/java/rocksjni/transaction_notifier_jnicallback.h +42 -0
- package/vendor/rocksdb/java/rocksjni/transaction_options.cc +191 -0
- package/vendor/rocksdb/java/rocksjni/ttl.cc +212 -0
- package/vendor/rocksdb/java/rocksjni/wal_filter.cc +24 -0
- package/vendor/rocksdb/java/rocksjni/wal_filter_jnicallback.cc +139 -0
- package/vendor/rocksdb/java/rocksjni/wal_filter_jnicallback.h +42 -0
- package/vendor/rocksdb/java/rocksjni/write_batch.cc +676 -0
- package/vendor/rocksdb/java/rocksjni/write_batch_test.cc +199 -0
- package/vendor/rocksdb/java/rocksjni/write_batch_with_index.cc +953 -0
- package/vendor/rocksdb/java/rocksjni/write_buffer_manager.cc +47 -0
- package/vendor/rocksdb/java/rocksjni/writebatchhandlerjnicallback.cc +519 -0
- package/vendor/rocksdb/java/rocksjni/writebatchhandlerjnicallback.h +92 -0
- package/vendor/rocksdb/java/samples/src/main/java/OptimisticTransactionSample.java +184 -0
- package/vendor/rocksdb/java/samples/src/main/java/RocksDBColumnFamilySample.java +78 -0
- package/vendor/rocksdb/java/samples/src/main/java/RocksDBSample.java +295 -0
- package/vendor/rocksdb/java/samples/src/main/java/TransactionSample.java +183 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractCompactionFilter.java +59 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractCompactionFilterFactory.java +77 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractComparator.java +124 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractComparatorJniBridge.java +119 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractEventListener.java +334 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractImmutableNativeReference.java +65 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractMutableOptions.java +368 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractNativeReference.java +49 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractRocksIterator.java +146 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractSlice.java +191 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractTableFilter.java +20 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractTraceWriter.java +70 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractTransactionNotifier.java +54 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractWalFilter.java +49 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AbstractWriteBatch.java +203 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AccessHint.java +53 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java +463 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java +830 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BackgroundErrorReason.java +46 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BackupEngine.java +259 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BackupEngineOptions.java +458 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BackupInfo.java +76 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java +951 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BloomFilter.java +73 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/BuiltinComparator.java +20 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ByteBufferGetStatus.java +50 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Cache.java +40 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CassandraCompactionFilter.java +20 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CassandraValueMergeOperator.java +25 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Checkpoint.java +62 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ChecksumType.java +45 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ClockCache.java +59 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java +84 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java +151 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ColumnFamilyMetaData.java +70 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java +1543 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java +536 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactRangeOptions.java +245 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionJobInfo.java +161 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionJobStats.java +295 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionOptions.java +121 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionOptionsFIFO.java +87 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionOptionsUniversal.java +273 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionPriority.java +81 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionReason.java +141 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionStopStyle.java +55 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompactionStyle.java +81 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ComparatorOptions.java +133 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ComparatorType.java +48 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompressionOptions.java +150 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/CompressionType.java +121 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java +44 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java +48 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ConfigOptions.java +53 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/DBOptions.java +1496 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/DBOptionsInterface.java +1756 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/DataBlockIndexType.java +32 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/DbPath.java +47 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/DirectSlice.java +136 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/EncodingType.java +55 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Env.java +167 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/EnvOptions.java +366 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/EventListener.java +335 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Experimental.java +23 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ExternalFileIngestionInfo.java +103 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/FileOperationInfo.java +112 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Filter.java +36 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/FlushJobInfo.java +186 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/FlushOptions.java +90 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/FlushReason.java +53 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java +174 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java +106 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/HistogramData.java +75 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/HistogramType.java +214 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Holder.java +46 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/IndexShorteningMode.java +60 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/IndexType.java +55 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/InfoLogLevel.java +49 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/IngestExternalFileOptions.java +227 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/KeyMayExist.java +35 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/LRUCache.java +106 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/LevelMetaData.java +56 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/LiveFileMetaData.java +55 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/LogFile.java +75 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Logger.java +121 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MemTableConfig.java +29 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MemTableInfo.java +103 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MemoryUsageType.java +72 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MemoryUtil.java +60 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MergeOperator.java +18 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MutableColumnFamilyOptions.java +621 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java +156 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MutableDBOptions.java +292 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java +440 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MutableOptionKey.java +16 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/MutableOptionValue.java +368 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/NativeComparatorWrapper.java +59 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/NativeLibraryLoader.java +172 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/OperationStage.java +59 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/OperationType.java +55 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/OptimisticTransactionDB.java +224 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/OptimisticTransactionOptions.java +53 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/OptionString.java +261 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Options.java +2574 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/OptionsUtil.java +101 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/PersistentCache.java +26 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/PlainTableConfig.java +251 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/PrepopulateBlobCache.java +117 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Priority.java +49 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Range.java +19 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RateLimiter.java +227 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RateLimiterMode.java +52 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ReadOptions.java +822 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ReadTier.java +49 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RemoveEmptyValueCompactionFilter.java +18 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RestoreOptions.java +32 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ReusedSynchronisationType.java +65 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksCallbackObject.java +73 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksDB.java +4688 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksDBException.java +44 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksEnv.java +31 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksIterator.java +140 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksIteratorInterface.java +127 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksMemEnv.java +31 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksMutableObject.java +87 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/RocksObject.java +45 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SanityLevel.java +47 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SizeApproximationFlag.java +31 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java +51 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Slice.java +135 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Snapshot.java +41 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstFileManager.java +249 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstFileMetaData.java +162 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstFileReader.java +82 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstFileReaderIterator.java +140 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstFileWriter.java +237 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstPartitionerFactory.java +15 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/SstPartitionerFixedPrefixFactory.java +19 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/StateType.java +53 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Statistics.java +153 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/StatisticsCollector.java +102 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/StatisticsCollectorCallback.java +32 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/StatsCollectorInput.java +35 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/StatsLevel.java +65 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Status.java +155 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/StringAppendOperator.java +29 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableFileCreationBriefInfo.java +107 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableFileCreationInfo.java +86 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableFileCreationReason.java +46 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableFileDeletionInfo.java +86 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableFilter.java +21 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableFormatConfig.java +22 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TableProperties.java +426 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ThreadStatus.java +224 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/ThreadType.java +65 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TickerType.java +802 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TimedEnv.java +30 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TraceOptions.java +32 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TraceWriter.java +36 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/Transaction.java +2162 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TransactionDB.java +401 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TransactionDBOptions.java +216 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TransactionLogIterator.java +112 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TransactionOptions.java +189 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TransactionalDB.java +65 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TransactionalOptions.java +31 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TtlDB.java +242 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/TxnDBWritePolicy.java +62 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/UInt64AddOperator.java +19 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/VectorMemTableConfig.java +46 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WALRecoveryMode.java +82 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WBWIRocksIterator.java +203 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WalFileType.java +55 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WalFilter.java +86 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WalProcessingOption.java +54 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteBatch.java +394 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteBatchInterface.java +283 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteBatchWithIndex.java +358 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteBufferManager.java +50 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteOptions.java +255 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteStallCondition.java +44 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/WriteStallInfo.java +75 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/util/ByteUtil.java +52 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/util/BytewiseComparator.java +121 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/util/Environment.java +245 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/util/IntComparator.java +67 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/util/ReverseBytewiseComparator.java +88 -0
- package/vendor/rocksdb/java/src/main/java/org/rocksdb/util/SizeUnit.java +16 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/AbstractTransactionTest.java +979 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/BackupEngineOptionsTest.java +297 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/BackupEngineTest.java +261 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/BlobOptionsTest.java +353 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/BlockBasedTableConfigTest.java +415 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/BuiltinComparatorTest.java +145 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ByteBufferUnsupportedOperationTest.java +132 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/BytewiseComparatorRegressionTest.java +132 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CheckPointTest.java +82 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ClockCacheTest.java +25 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java +712 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ColumnFamilyTest.java +562 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactRangeOptionsTest.java +102 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionFilterFactoryTest.java +61 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionJobInfoTest.java +114 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionJobStatsTest.java +196 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionOptionsFIFOTest.java +35 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionOptionsTest.java +52 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionOptionsUniversalTest.java +80 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionPriorityTest.java +31 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompactionStopStyleTest.java +31 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ComparatorOptionsTest.java +58 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompressionOptionsTest.java +71 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/CompressionTypesTest.java +25 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java +56 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/DBOptionsTest.java +902 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/DefaultEnvTest.java +113 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/DirectSliceTest.java +93 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/EnvOptionsTest.java +145 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/EventListenerTest.java +725 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/FilterTest.java +39 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/FlushOptionsTest.java +31 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/FlushTest.java +49 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/InfoLogLevelTest.java +109 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/IngestExternalFileOptionsTest.java +107 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/KeyMayExistTest.java +528 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/LRUCacheTest.java +32 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/LoggerTest.java +235 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MemTableTest.java +108 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MemoryUtilTest.java +136 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MergeTest.java +465 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MixedOptionsTest.java +85 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MultiColumnRegressionTest.java +145 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MultiGetManyKeysTest.java +241 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MultiGetTest.java +530 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MutableColumnFamilyOptionsTest.java +167 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MutableDBOptionsTest.java +85 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/MutableOptionsGetSetTest.java +429 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/NativeComparatorWrapperTest.java +90 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/NativeLibraryLoaderTest.java +41 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/OptimisticTransactionDBTest.java +131 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/OptimisticTransactionOptionsTest.java +38 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/OptimisticTransactionTest.java +446 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/OptionsTest.java +1488 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/OptionsUtilTest.java +129 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/PlainTableConfigTest.java +89 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/PlatformRandomHelper.java +58 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/PutMultiplePartsTest.java +164 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/RateLimiterTest.java +65 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ReadOnlyTest.java +222 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/ReadOptionsTest.java +374 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/RocksDBExceptionTest.java +115 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/RocksDBTest.java +1692 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/RocksIteratorTest.java +289 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/RocksMemEnvTest.java +137 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/RocksNativeLibraryResource.java +18 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SecondaryDBTest.java +135 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SliceTest.java +80 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SnapshotTest.java +169 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SstFileManagerTest.java +66 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SstFileReaderTest.java +222 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SstFileWriterTest.java +239 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/SstPartitionerTest.java +72 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/StatisticsCollectorTest.java +55 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/StatisticsTest.java +168 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/StatsCallbackMock.java +19 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TableFilterTest.java +106 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TimedEnvTest.java +40 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TransactionDBOptionsTest.java +64 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TransactionDBTest.java +177 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java +139 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TransactionOptionsTest.java +72 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TransactionTest.java +488 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/TtlDBTest.java +112 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/Types.java +43 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/VerifyChecksumsTest.java +213 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WALRecoveryModeTest.java +22 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WalFilterTest.java +165 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WriteBatchHandlerTest.java +76 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WriteBatchTest.java +528 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WriteBatchThreadedTest.java +101 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WriteBatchWithIndexTest.java +1068 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/WriteOptionsTest.java +75 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java +21 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/test/RocksJunitRunner.java +174 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/test/TestableEventListener.java +23 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java +16 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/BytewiseComparatorIntTest.java +267 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/BytewiseComparatorTest.java +531 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java +190 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java +18 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/EnvironmentTest.java +304 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java +18 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/IntComparatorTest.java +266 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/JNIComparatorTest.java +180 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/ReverseBytewiseComparatorIntTest.java +270 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/SizeUnitTest.java +27 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/TestUtil.java +72 -0
- package/vendor/rocksdb/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java +139 -0
- package/vendor/rocksdb/java/understanding_options.md +79 -0
- package/vendor/rocksdb/logging/auto_roll_logger.cc +368 -0
- package/vendor/rocksdb/logging/auto_roll_logger.h +166 -0
- package/vendor/rocksdb/logging/auto_roll_logger_test.cc +731 -0
- package/vendor/rocksdb/logging/env_logger.h +195 -0
- package/vendor/rocksdb/logging/env_logger_test.cc +163 -0
- package/vendor/rocksdb/logging/event_logger.cc +68 -0
- package/vendor/rocksdb/logging/event_logger.h +202 -0
- package/vendor/rocksdb/logging/event_logger_test.cc +45 -0
- package/vendor/rocksdb/logging/log_buffer.cc +91 -0
- package/vendor/rocksdb/logging/log_buffer.h +57 -0
- package/vendor/rocksdb/logging/logging.h +62 -0
- package/vendor/rocksdb/memory/allocator.h +58 -0
- package/vendor/rocksdb/memory/arena.cc +170 -0
- package/vendor/rocksdb/memory/arena.h +135 -0
- package/vendor/rocksdb/memory/arena_test.cc +295 -0
- package/vendor/rocksdb/memory/concurrent_arena.cc +45 -0
- package/vendor/rocksdb/memory/concurrent_arena.h +215 -0
- package/vendor/rocksdb/memory/jemalloc_nodump_allocator.cc +303 -0
- package/vendor/rocksdb/memory/jemalloc_nodump_allocator.h +99 -0
- package/vendor/rocksdb/memory/memkind_kmem_allocator.cc +44 -0
- package/vendor/rocksdb/memory/memkind_kmem_allocator.h +43 -0
- package/vendor/rocksdb/memory/memory_allocator.cc +80 -0
- package/vendor/rocksdb/memory/memory_allocator_impl.h +47 -0
- package/vendor/rocksdb/memory/memory_allocator_test.cc +236 -0
- package/vendor/rocksdb/memory/memory_usage.h +38 -0
- package/vendor/rocksdb/memtable/alloc_tracker.cc +63 -0
- package/vendor/rocksdb/memtable/hash_linklist_rep.cc +924 -0
- package/vendor/rocksdb/memtable/hash_skiplist_rep.cc +391 -0
- package/vendor/rocksdb/memtable/inlineskiplist.h +1051 -0
- package/vendor/rocksdb/memtable/inlineskiplist_test.cc +665 -0
- package/vendor/rocksdb/memtable/memtablerep_bench.cc +687 -0
- package/vendor/rocksdb/memtable/skiplist.h +498 -0
- package/vendor/rocksdb/memtable/skiplist_test.cc +388 -0
- package/vendor/rocksdb/memtable/skiplistrep.cc +368 -0
- package/vendor/rocksdb/memtable/stl_wrappers.h +33 -0
- package/vendor/rocksdb/memtable/vectorrep.cc +307 -0
- package/vendor/rocksdb/memtable/write_buffer_manager.cc +185 -0
- package/vendor/rocksdb/memtable/write_buffer_manager_test.cc +304 -0
- package/vendor/rocksdb/microbench/CMakeLists.txt +17 -0
- package/vendor/rocksdb/microbench/README.md +60 -0
- package/vendor/rocksdb/microbench/db_basic_bench.cc +1583 -0
- package/vendor/rocksdb/microbench/ribbon_bench.cc +155 -0
- package/vendor/rocksdb/monitoring/file_read_sample.h +23 -0
- package/vendor/rocksdb/monitoring/histogram.cc +270 -0
- package/vendor/rocksdb/monitoring/histogram.h +143 -0
- package/vendor/rocksdb/monitoring/histogram_test.cc +254 -0
- package/vendor/rocksdb/monitoring/histogram_windowing.cc +194 -0
- package/vendor/rocksdb/monitoring/histogram_windowing.h +84 -0
- package/vendor/rocksdb/monitoring/in_memory_stats_history.cc +50 -0
- package/vendor/rocksdb/monitoring/in_memory_stats_history.h +74 -0
- package/vendor/rocksdb/monitoring/instrumented_mutex.cc +90 -0
- package/vendor/rocksdb/monitoring/instrumented_mutex.h +126 -0
- package/vendor/rocksdb/monitoring/iostats_context.cc +78 -0
- package/vendor/rocksdb/monitoring/iostats_context_imp.h +62 -0
- package/vendor/rocksdb/monitoring/iostats_context_test.cc +31 -0
- package/vendor/rocksdb/monitoring/perf_context.cc +313 -0
- package/vendor/rocksdb/monitoring/perf_context_imp.h +96 -0
- package/vendor/rocksdb/monitoring/perf_level.cc +23 -0
- package/vendor/rocksdb/monitoring/perf_level_imp.h +14 -0
- package/vendor/rocksdb/monitoring/perf_step_timer.h +77 -0
- package/vendor/rocksdb/monitoring/persistent_stats_history.cc +170 -0
- package/vendor/rocksdb/monitoring/persistent_stats_history.h +83 -0
- package/vendor/rocksdb/monitoring/statistics.cc +534 -0
- package/vendor/rocksdb/monitoring/statistics_impl.h +144 -0
- package/vendor/rocksdb/monitoring/statistics_test.cc +88 -0
- package/vendor/rocksdb/monitoring/stats_history_test.cc +662 -0
- package/vendor/rocksdb/monitoring/thread_status_impl.cc +163 -0
- package/vendor/rocksdb/monitoring/thread_status_updater.cc +328 -0
- package/vendor/rocksdb/monitoring/thread_status_updater.h +226 -0
- package/vendor/rocksdb/monitoring/thread_status_updater_debug.cc +43 -0
- package/vendor/rocksdb/monitoring/thread_status_util.cc +208 -0
- package/vendor/rocksdb/monitoring/thread_status_util.h +139 -0
- package/vendor/rocksdb/monitoring/thread_status_util_debug.cc +46 -0
- package/vendor/rocksdb/options/cf_options.cc +1196 -0
- package/vendor/rocksdb/options/cf_options.h +347 -0
- package/vendor/rocksdb/options/configurable.cc +712 -0
- package/vendor/rocksdb/options/configurable_helper.h +185 -0
- package/vendor/rocksdb/options/configurable_test.cc +861 -0
- package/vendor/rocksdb/options/configurable_test.h +116 -0
- package/vendor/rocksdb/options/customizable.cc +133 -0
- package/vendor/rocksdb/options/customizable_test.cc +2116 -0
- package/vendor/rocksdb/options/db_options.cc +1079 -0
- package/vendor/rocksdb/options/db_options.h +152 -0
- package/vendor/rocksdb/options/options.cc +692 -0
- package/vendor/rocksdb/options/options_helper.cc +1424 -0
- package/vendor/rocksdb/options/options_helper.h +116 -0
- package/vendor/rocksdb/options/options_parser.cc +736 -0
- package/vendor/rocksdb/options/options_parser.h +149 -0
- package/vendor/rocksdb/options/options_settable_test.cc +655 -0
- package/vendor/rocksdb/options/options_test.cc +5060 -0
- package/vendor/rocksdb/plugin/README.md +43 -0
- package/vendor/rocksdb/port/README +10 -0
- package/vendor/rocksdb/port/jemalloc_helper.h +107 -0
- package/vendor/rocksdb/port/lang.h +97 -0
- package/vendor/rocksdb/port/likely.h +18 -0
- package/vendor/rocksdb/port/malloc.h +17 -0
- package/vendor/rocksdb/port/mmap.cc +98 -0
- package/vendor/rocksdb/port/mmap.h +70 -0
- package/vendor/rocksdb/port/port.h +21 -0
- package/vendor/rocksdb/port/port_dirent.h +44 -0
- package/vendor/rocksdb/port/port_example.h +101 -0
- package/vendor/rocksdb/port/port_posix.cc +300 -0
- package/vendor/rocksdb/port/port_posix.h +243 -0
- package/vendor/rocksdb/port/stack_trace.cc +336 -0
- package/vendor/rocksdb/port/stack_trace.h +31 -0
- package/vendor/rocksdb/port/sys_time.h +63 -0
- package/vendor/rocksdb/port/util_logger.h +18 -0
- package/vendor/rocksdb/port/win/env_default.cc +45 -0
- package/vendor/rocksdb/port/win/env_win.cc +1437 -0
- package/vendor/rocksdb/port/win/env_win.h +305 -0
- package/vendor/rocksdb/port/win/io_win.cc +1101 -0
- package/vendor/rocksdb/port/win/io_win.h +508 -0
- package/vendor/rocksdb/port/win/port_win.cc +303 -0
- package/vendor/rocksdb/port/win/port_win.h +379 -0
- package/vendor/rocksdb/port/win/win_jemalloc.cc +80 -0
- package/vendor/rocksdb/port/win/win_logger.cc +192 -0
- package/vendor/rocksdb/port/win/win_logger.h +64 -0
- package/vendor/rocksdb/port/win/win_thread.cc +170 -0
- package/vendor/rocksdb/port/win/win_thread.h +117 -0
- package/vendor/rocksdb/port/win/xpress_win.cc +210 -0
- package/vendor/rocksdb/port/win/xpress_win.h +26 -0
- package/vendor/rocksdb/port/xpress.h +17 -0
- package/vendor/rocksdb/rocksdb.pc.in +10 -0
- package/vendor/rocksdb/src.mk +713 -0
- package/vendor/rocksdb/table/adaptive/adaptive_table_factory.cc +125 -0
- package/vendor/rocksdb/table/adaptive/adaptive_table_factory.h +56 -0
- package/vendor/rocksdb/table/block_based/binary_search_index_reader.cc +73 -0
- package/vendor/rocksdb/table/block_based/binary_search_index_reader.h +48 -0
- package/vendor/rocksdb/table/block_based/block.cc +1291 -0
- package/vendor/rocksdb/table/block_based/block.h +921 -0
- package/vendor/rocksdb/table/block_based/block_based_table_builder.cc +2027 -0
- package/vendor/rocksdb/table/block_based/block_based_table_builder.h +209 -0
- package/vendor/rocksdb/table/block_based/block_based_table_factory.cc +962 -0
- package/vendor/rocksdb/table/block_based/block_based_table_factory.h +102 -0
- package/vendor/rocksdb/table/block_based/block_based_table_iterator.cc +500 -0
- package/vendor/rocksdb/table/block_based/block_based_table_iterator.h +310 -0
- package/vendor/rocksdb/table/block_based/block_based_table_reader.cc +3043 -0
- package/vendor/rocksdb/table/block_based/block_based_table_reader.h +745 -0
- package/vendor/rocksdb/table/block_based/block_based_table_reader_impl.h +203 -0
- package/vendor/rocksdb/table/block_based/block_based_table_reader_sync_and_async.h +758 -0
- package/vendor/rocksdb/table/block_based/block_based_table_reader_test.cc +567 -0
- package/vendor/rocksdb/table/block_based/block_builder.cc +234 -0
- package/vendor/rocksdb/table/block_based/block_builder.h +104 -0
- package/vendor/rocksdb/table/block_based/block_cache.cc +106 -0
- package/vendor/rocksdb/table/block_based/block_cache.h +140 -0
- package/vendor/rocksdb/table/block_based/block_prefetcher.cc +120 -0
- package/vendor/rocksdb/table/block_based/block_prefetcher.h +72 -0
- package/vendor/rocksdb/table/block_based/block_prefix_index.cc +226 -0
- package/vendor/rocksdb/table/block_based/block_prefix_index.h +70 -0
- package/vendor/rocksdb/table/block_based/block_test.cc +1543 -0
- package/vendor/rocksdb/table/block_based/block_type.h +34 -0
- package/vendor/rocksdb/table/block_based/cachable_entry.h +244 -0
- package/vendor/rocksdb/table/block_based/data_block_footer.cc +59 -0
- package/vendor/rocksdb/table/block_based/data_block_footer.h +25 -0
- package/vendor/rocksdb/table/block_based/data_block_hash_index.cc +94 -0
- package/vendor/rocksdb/table/block_based/data_block_hash_index.h +137 -0
- package/vendor/rocksdb/table/block_based/data_block_hash_index_test.cc +718 -0
- package/vendor/rocksdb/table/block_based/filter_block.h +183 -0
- package/vendor/rocksdb/table/block_based/filter_block_reader_common.cc +163 -0
- package/vendor/rocksdb/table/block_based/filter_block_reader_common.h +76 -0
- package/vendor/rocksdb/table/block_based/filter_policy.cc +1966 -0
- package/vendor/rocksdb/table/block_based/filter_policy_internal.h +340 -0
- package/vendor/rocksdb/table/block_based/flush_block_policy.cc +132 -0
- package/vendor/rocksdb/table/block_based/flush_block_policy_impl.h +40 -0
- package/vendor/rocksdb/table/block_based/full_filter_block.cc +290 -0
- package/vendor/rocksdb/table/block_based/full_filter_block.h +147 -0
- package/vendor/rocksdb/table/block_based/full_filter_block_test.cc +323 -0
- package/vendor/rocksdb/table/block_based/hash_index_reader.cc +147 -0
- package/vendor/rocksdb/table/block_based/hash_index_reader.h +49 -0
- package/vendor/rocksdb/table/block_based/index_builder.cc +282 -0
- package/vendor/rocksdb/table/block_based/index_builder.h +455 -0
- package/vendor/rocksdb/table/block_based/index_reader_common.cc +57 -0
- package/vendor/rocksdb/table/block_based/index_reader_common.h +85 -0
- package/vendor/rocksdb/table/block_based/mock_block_based_table.h +62 -0
- package/vendor/rocksdb/table/block_based/parsed_full_filter_block.cc +23 -0
- package/vendor/rocksdb/table/block_based/parsed_full_filter_block.h +47 -0
- package/vendor/rocksdb/table/block_based/partitioned_filter_block.cc +554 -0
- package/vendor/rocksdb/table/block_based/partitioned_filter_block.h +182 -0
- package/vendor/rocksdb/table/block_based/partitioned_filter_block_test.cc +436 -0
- package/vendor/rocksdb/table/block_based/partitioned_index_iterator.cc +163 -0
- package/vendor/rocksdb/table/block_based/partitioned_index_iterator.h +160 -0
- package/vendor/rocksdb/table/block_based/partitioned_index_reader.cc +224 -0
- package/vendor/rocksdb/table/block_based/partitioned_index_reader.h +56 -0
- package/vendor/rocksdb/table/block_based/reader_common.cc +52 -0
- package/vendor/rocksdb/table/block_based/reader_common.h +34 -0
- package/vendor/rocksdb/table/block_based/uncompression_dict_reader.cc +126 -0
- package/vendor/rocksdb/table/block_based/uncompression_dict_reader.h +61 -0
- package/vendor/rocksdb/table/block_fetcher.cc +405 -0
- package/vendor/rocksdb/table/block_fetcher.h +142 -0
- package/vendor/rocksdb/table/block_fetcher_test.cc +520 -0
- package/vendor/rocksdb/table/cleanable_test.cc +390 -0
- package/vendor/rocksdb/table/compaction_merging_iterator.cc +370 -0
- package/vendor/rocksdb/table/compaction_merging_iterator.h +44 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_builder.cc +551 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_builder.h +136 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_builder_test.cc +631 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_factory.cc +100 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_factory.h +80 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_reader.cc +412 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_reader.h +100 -0
- package/vendor/rocksdb/table/cuckoo/cuckoo_table_reader_test.cc +574 -0
- package/vendor/rocksdb/table/format.cc +573 -0
- package/vendor/rocksdb/table/format.h +378 -0
- package/vendor/rocksdb/table/get_context.cc +616 -0
- package/vendor/rocksdb/table/get_context.h +245 -0
- package/vendor/rocksdb/table/internal_iterator.h +224 -0
- package/vendor/rocksdb/table/iter_heap.h +44 -0
- package/vendor/rocksdb/table/iterator.cc +130 -0
- package/vendor/rocksdb/table/iterator_wrapper.h +190 -0
- package/vendor/rocksdb/table/merger_test.cc +182 -0
- package/vendor/rocksdb/table/merging_iterator.cc +1725 -0
- package/vendor/rocksdb/table/merging_iterator.h +97 -0
- package/vendor/rocksdb/table/meta_blocks.cc +564 -0
- package/vendor/rocksdb/table/meta_blocks.h +172 -0
- package/vendor/rocksdb/table/mock_table.cc +346 -0
- package/vendor/rocksdb/table/mock_table.h +94 -0
- package/vendor/rocksdb/table/multiget_context.h +405 -0
- package/vendor/rocksdb/table/persistent_cache_helper.cc +111 -0
- package/vendor/rocksdb/table/persistent_cache_helper.h +46 -0
- package/vendor/rocksdb/table/persistent_cache_options.h +34 -0
- package/vendor/rocksdb/table/plain/plain_table_bloom.cc +78 -0
- package/vendor/rocksdb/table/plain/plain_table_bloom.h +132 -0
- package/vendor/rocksdb/table/plain/plain_table_builder.cc +335 -0
- package/vendor/rocksdb/table/plain/plain_table_builder.h +152 -0
- package/vendor/rocksdb/table/plain/plain_table_factory.cc +296 -0
- package/vendor/rocksdb/table/plain/plain_table_factory.h +180 -0
- package/vendor/rocksdb/table/plain/plain_table_index.cc +211 -0
- package/vendor/rocksdb/table/plain/plain_table_index.h +246 -0
- package/vendor/rocksdb/table/plain/plain_table_key_coding.cc +507 -0
- package/vendor/rocksdb/table/plain/plain_table_key_coding.h +199 -0
- package/vendor/rocksdb/table/plain/plain_table_reader.cc +771 -0
- package/vendor/rocksdb/table/plain/plain_table_reader.h +243 -0
- package/vendor/rocksdb/table/scoped_arena_iterator.h +57 -0
- package/vendor/rocksdb/table/sst_file_dumper.cc +520 -0
- package/vendor/rocksdb/table/sst_file_dumper.h +99 -0
- package/vendor/rocksdb/table/sst_file_reader.cc +101 -0
- package/vendor/rocksdb/table/sst_file_reader_test.cc +423 -0
- package/vendor/rocksdb/table/sst_file_writer.cc +436 -0
- package/vendor/rocksdb/table/sst_file_writer_collectors.h +95 -0
- package/vendor/rocksdb/table/table_builder.h +228 -0
- package/vendor/rocksdb/table/table_factory.cc +52 -0
- package/vendor/rocksdb/table/table_properties.cc +351 -0
- package/vendor/rocksdb/table/table_properties_internal.h +14 -0
- package/vendor/rocksdb/table/table_reader.h +187 -0
- package/vendor/rocksdb/table/table_reader_bench.cc +339 -0
- package/vendor/rocksdb/table/table_test.cc +5882 -0
- package/vendor/rocksdb/table/two_level_iterator.cc +220 -0
- package/vendor/rocksdb/table/two_level_iterator.h +43 -0
- package/vendor/rocksdb/table/unique_id.cc +223 -0
- package/vendor/rocksdb/table/unique_id_impl.h +93 -0
- package/vendor/rocksdb/test_util/mock_time_env.cc +38 -0
- package/vendor/rocksdb/test_util/mock_time_env.h +78 -0
- package/vendor/rocksdb/test_util/secondary_cache_test_util.cc +96 -0
- package/vendor/rocksdb/test_util/secondary_cache_test_util.h +119 -0
- package/vendor/rocksdb/test_util/sync_point.cc +82 -0
- package/vendor/rocksdb/test_util/sync_point.h +180 -0
- package/vendor/rocksdb/test_util/sync_point_impl.cc +152 -0
- package/vendor/rocksdb/test_util/sync_point_impl.h +96 -0
- package/vendor/rocksdb/test_util/testharness.cc +107 -0
- package/vendor/rocksdb/test_util/testharness.h +124 -0
- package/vendor/rocksdb/test_util/testutil.cc +722 -0
- package/vendor/rocksdb/test_util/testutil.h +860 -0
- package/vendor/rocksdb/test_util/testutil_test.cc +43 -0
- package/vendor/rocksdb/test_util/transaction_test_util.cc +400 -0
- package/vendor/rocksdb/test_util/transaction_test_util.h +147 -0
- package/vendor/rocksdb/third-party/gcc/ppc-asm.h +390 -0
- package/vendor/rocksdb/third-party/gtest-1.8.1/fused-src/gtest/CMakeLists.txt +4 -0
- package/vendor/rocksdb/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc +11394 -0
- package/vendor/rocksdb/third-party/gtest-1.8.1/fused-src/gtest/gtest.h +22115 -0
- package/vendor/rocksdb/third-party/gtest-1.8.1/fused-src/gtest/gtest_main.cc +37 -0
- package/vendor/rocksdb/thirdparty.inc +268 -0
- package/vendor/rocksdb/tools/CMakeLists.txt +30 -0
- package/vendor/rocksdb/tools/Dockerfile +5 -0
- package/vendor/rocksdb/tools/advisor/README.md +96 -0
- package/vendor/rocksdb/tools/advisor/advisor/__init__.py +0 -0
- package/vendor/rocksdb/tools/advisor/advisor/bench_runner.py +39 -0
- package/vendor/rocksdb/tools/advisor/advisor/config_optimizer_example.py +140 -0
- package/vendor/rocksdb/tools/advisor/advisor/db_bench_runner.py +237 -0
- package/vendor/rocksdb/tools/advisor/advisor/db_config_optimizer.py +293 -0
- package/vendor/rocksdb/tools/advisor/advisor/db_log_parser.py +134 -0
- package/vendor/rocksdb/tools/advisor/advisor/db_options_parser.py +348 -0
- package/vendor/rocksdb/tools/advisor/advisor/db_stats_fetcher.py +346 -0
- package/vendor/rocksdb/tools/advisor/advisor/db_timeseries_parser.py +203 -0
- package/vendor/rocksdb/tools/advisor/advisor/ini_parser.py +76 -0
- package/vendor/rocksdb/tools/advisor/advisor/rule_parser.py +510 -0
- package/vendor/rocksdb/tools/advisor/advisor/rule_parser_example.py +98 -0
- package/vendor/rocksdb/tools/advisor/advisor/rules.ini +214 -0
- package/vendor/rocksdb/tools/advisor/test/__init__.py +0 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/LOG-0 +30 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/LOG-1 +25 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/OPTIONS-000005 +49 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/log_stats_parser_keys_ts +3 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/rules_err1.ini +56 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/rules_err2.ini +15 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/rules_err3.ini +15 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/rules_err4.ini +15 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/test_rules.ini +47 -0
- package/vendor/rocksdb/tools/advisor/test/input_files/triggered_rules.ini +83 -0
- package/vendor/rocksdb/tools/advisor/test/test_db_bench_runner.py +141 -0
- package/vendor/rocksdb/tools/advisor/test/test_db_log_parser.py +96 -0
- package/vendor/rocksdb/tools/advisor/test/test_db_options_parser.py +214 -0
- package/vendor/rocksdb/tools/advisor/test/test_db_stats_fetcher.py +121 -0
- package/vendor/rocksdb/tools/advisor/test/test_rule_parser.py +226 -0
- package/vendor/rocksdb/tools/analyze_txn_stress_test.sh +77 -0
- package/vendor/rocksdb/tools/auto_sanity_test.sh +93 -0
- package/vendor/rocksdb/tools/backup_db.sh +15 -0
- package/vendor/rocksdb/tools/benchmark.sh +1173 -0
- package/vendor/rocksdb/tools/benchmark_ci.py +182 -0
- package/vendor/rocksdb/tools/benchmark_compare.sh +342 -0
- package/vendor/rocksdb/tools/benchmark_leveldb.sh +187 -0
- package/vendor/rocksdb/tools/blob_dump.cc +103 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/__init__.py +2 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_pysim.py +2000 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_pysim.sh +156 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_pysim_test.py +734 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.cc +2314 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.h +397 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py +729 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc +791 -0
- package/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_tool.cc +17 -0
- package/vendor/rocksdb/tools/check_all_python.py +22 -0
- package/vendor/rocksdb/tools/check_format_compatible.sh +379 -0
- package/vendor/rocksdb/tools/db_bench.cc +21 -0
- package/vendor/rocksdb/tools/db_bench_tool.cc +8604 -0
- package/vendor/rocksdb/tools/db_bench_tool_test.cc +342 -0
- package/vendor/rocksdb/tools/db_crashtest.py +1018 -0
- package/vendor/rocksdb/tools/db_repl_stress.cc +132 -0
- package/vendor/rocksdb/tools/db_sanity_test.cc +296 -0
- package/vendor/rocksdb/tools/dbench_monitor +102 -0
- package/vendor/rocksdb/tools/dump/db_dump_tool.cc +258 -0
- package/vendor/rocksdb/tools/dump/rocksdb_dump.cc +60 -0
- package/vendor/rocksdb/tools/dump/rocksdb_undump.cc +59 -0
- package/vendor/rocksdb/tools/generate_random_db.sh +31 -0
- package/vendor/rocksdb/tools/ingest_external_sst.sh +18 -0
- package/vendor/rocksdb/tools/io_tracer_parser.cc +17 -0
- package/vendor/rocksdb/tools/io_tracer_parser_test.cc +182 -0
- package/vendor/rocksdb/tools/io_tracer_parser_tool.cc +142 -0
- package/vendor/rocksdb/tools/io_tracer_parser_tool.h +38 -0
- package/vendor/rocksdb/tools/ldb.cc +13 -0
- package/vendor/rocksdb/tools/ldb_cmd.cc +4263 -0
- package/vendor/rocksdb/tools/ldb_cmd_impl.h +744 -0
- package/vendor/rocksdb/tools/ldb_cmd_test.cc +1216 -0
- package/vendor/rocksdb/tools/ldb_test.py +955 -0
- package/vendor/rocksdb/tools/ldb_tool.cc +182 -0
- package/vendor/rocksdb/tools/pflag +217 -0
- package/vendor/rocksdb/tools/reduce_levels_test.cc +212 -0
- package/vendor/rocksdb/tools/regression_test.sh +525 -0
- package/vendor/rocksdb/tools/restore_db.sh +15 -0
- package/vendor/rocksdb/tools/rocksdb_dump_test.sh +9 -0
- package/vendor/rocksdb/tools/run_blob_bench.sh +223 -0
- package/vendor/rocksdb/tools/run_flash_bench.sh +359 -0
- package/vendor/rocksdb/tools/run_leveldb.sh +175 -0
- package/vendor/rocksdb/tools/sample-dump.dmp +0 -0
- package/vendor/rocksdb/tools/simulated_hybrid_file_system.cc +243 -0
- package/vendor/rocksdb/tools/simulated_hybrid_file_system.h +124 -0
- package/vendor/rocksdb/tools/sst_dump.cc +12 -0
- package/vendor/rocksdb/tools/sst_dump_test.cc +471 -0
- package/vendor/rocksdb/tools/sst_dump_tool.cc +582 -0
- package/vendor/rocksdb/tools/trace_analyzer.cc +17 -0
- package/vendor/rocksdb/tools/trace_analyzer_test.cc +880 -0
- package/vendor/rocksdb/tools/trace_analyzer_tool.cc +1929 -0
- package/vendor/rocksdb/tools/trace_analyzer_tool.h +329 -0
- package/vendor/rocksdb/tools/verify_random_db.sh +41 -0
- package/vendor/rocksdb/tools/write_external_sst.sh +26 -0
- package/vendor/rocksdb/tools/write_stress.cc +305 -0
- package/vendor/rocksdb/tools/write_stress_runner.py +83 -0
- package/vendor/rocksdb/trace_replay/block_cache_tracer.cc +509 -0
- package/vendor/rocksdb/trace_replay/block_cache_tracer.h +239 -0
- package/vendor/rocksdb/trace_replay/block_cache_tracer_test.cc +421 -0
- package/vendor/rocksdb/trace_replay/io_tracer.cc +303 -0
- package/vendor/rocksdb/trace_replay/io_tracer.h +185 -0
- package/vendor/rocksdb/trace_replay/io_tracer_test.cc +353 -0
- package/vendor/rocksdb/trace_replay/trace_record.cc +206 -0
- package/vendor/rocksdb/trace_replay/trace_record_handler.cc +190 -0
- package/vendor/rocksdb/trace_replay/trace_record_handler.h +46 -0
- package/vendor/rocksdb/trace_replay/trace_record_result.cc +146 -0
- package/vendor/rocksdb/trace_replay/trace_replay.cc +622 -0
- package/vendor/rocksdb/trace_replay/trace_replay.h +183 -0
- package/vendor/rocksdb/util/aligned_buffer.h +235 -0
- package/vendor/rocksdb/util/async_file_reader.cc +81 -0
- package/vendor/rocksdb/util/async_file_reader.h +144 -0
- package/vendor/rocksdb/util/autovector.h +393 -0
- package/vendor/rocksdb/util/autovector_test.cc +324 -0
- package/vendor/rocksdb/util/bloom_impl.h +489 -0
- package/vendor/rocksdb/util/bloom_test.cc +1175 -0
- package/vendor/rocksdb/util/build_version.cc.in +79 -0
- package/vendor/rocksdb/util/cast_util.h +42 -0
- package/vendor/rocksdb/util/channel.h +69 -0
- package/vendor/rocksdb/util/cleanable.cc +181 -0
- package/vendor/rocksdb/util/coding.cc +90 -0
- package/vendor/rocksdb/util/coding.h +389 -0
- package/vendor/rocksdb/util/coding_lean.h +101 -0
- package/vendor/rocksdb/util/coding_test.cc +217 -0
- package/vendor/rocksdb/util/compaction_job_stats_impl.cc +92 -0
- package/vendor/rocksdb/util/comparator.cc +383 -0
- package/vendor/rocksdb/util/compression.cc +122 -0
- package/vendor/rocksdb/util/compression.h +1795 -0
- package/vendor/rocksdb/util/compression_context_cache.cc +106 -0
- package/vendor/rocksdb/util/compression_context_cache.h +47 -0
- package/vendor/rocksdb/util/concurrent_task_limiter_impl.cc +64 -0
- package/vendor/rocksdb/util/concurrent_task_limiter_impl.h +67 -0
- package/vendor/rocksdb/util/core_local.h +84 -0
- package/vendor/rocksdb/util/coro_utils.h +112 -0
- package/vendor/rocksdb/util/crc32c.cc +1292 -0
- package/vendor/rocksdb/util/crc32c.h +56 -0
- package/vendor/rocksdb/util/crc32c_arm64.cc +213 -0
- package/vendor/rocksdb/util/crc32c_arm64.h +52 -0
- package/vendor/rocksdb/util/crc32c_ppc.c +94 -0
- package/vendor/rocksdb/util/crc32c_ppc.h +22 -0
- package/vendor/rocksdb/util/crc32c_ppc_asm.S +756 -0
- package/vendor/rocksdb/util/crc32c_ppc_constants.h +900 -0
- package/vendor/rocksdb/util/crc32c_test.cc +213 -0
- package/vendor/rocksdb/util/data_structure.cc +18 -0
- package/vendor/rocksdb/util/defer.h +82 -0
- package/vendor/rocksdb/util/defer_test.cc +51 -0
- package/vendor/rocksdb/util/distributed_mutex.h +50 -0
- package/vendor/rocksdb/util/duplicate_detector.h +69 -0
- package/vendor/rocksdb/util/dynamic_bloom.cc +70 -0
- package/vendor/rocksdb/util/dynamic_bloom.h +214 -0
- package/vendor/rocksdb/util/dynamic_bloom_test.cc +325 -0
- package/vendor/rocksdb/util/fastrange.h +114 -0
- package/vendor/rocksdb/util/file_checksum_helper.cc +170 -0
- package/vendor/rocksdb/util/file_checksum_helper.h +101 -0
- package/vendor/rocksdb/util/file_reader_writer_test.cc +1058 -0
- package/vendor/rocksdb/util/filelock_test.cc +148 -0
- package/vendor/rocksdb/util/filter_bench.cc +840 -0
- package/vendor/rocksdb/util/gflags_compat.h +29 -0
- package/vendor/rocksdb/util/hash.cc +201 -0
- package/vendor/rocksdb/util/hash.h +137 -0
- package/vendor/rocksdb/util/hash128.h +26 -0
- package/vendor/rocksdb/util/hash_containers.h +51 -0
- package/vendor/rocksdb/util/hash_map.h +67 -0
- package/vendor/rocksdb/util/hash_test.cc +853 -0
- package/vendor/rocksdb/util/heap.h +174 -0
- package/vendor/rocksdb/util/heap_test.cc +131 -0
- package/vendor/rocksdb/util/kv_map.h +33 -0
- package/vendor/rocksdb/util/log_write_bench.cc +88 -0
- package/vendor/rocksdb/util/math.h +299 -0
- package/vendor/rocksdb/util/math128.h +316 -0
- package/vendor/rocksdb/util/murmurhash.cc +196 -0
- package/vendor/rocksdb/util/murmurhash.h +43 -0
- package/vendor/rocksdb/util/mutexlock.h +181 -0
- package/vendor/rocksdb/util/ppc-opcode.h +27 -0
- package/vendor/rocksdb/util/random.cc +63 -0
- package/vendor/rocksdb/util/random.h +190 -0
- package/vendor/rocksdb/util/random_test.cc +107 -0
- package/vendor/rocksdb/util/rate_limiter.cc +376 -0
- package/vendor/rocksdb/util/rate_limiter_impl.h +146 -0
- package/vendor/rocksdb/util/rate_limiter_test.cc +520 -0
- package/vendor/rocksdb/util/repeatable_thread.h +149 -0
- package/vendor/rocksdb/util/repeatable_thread_test.cc +111 -0
- package/vendor/rocksdb/util/ribbon_alg.h +1225 -0
- package/vendor/rocksdb/util/ribbon_config.cc +506 -0
- package/vendor/rocksdb/util/ribbon_config.h +182 -0
- package/vendor/rocksdb/util/ribbon_impl.h +1137 -0
- package/vendor/rocksdb/util/ribbon_test.cc +1308 -0
- package/vendor/rocksdb/util/set_comparator.h +24 -0
- package/vendor/rocksdb/util/single_thread_executor.h +56 -0
- package/vendor/rocksdb/util/slice.cc +367 -0
- package/vendor/rocksdb/util/slice_test.cc +252 -0
- package/vendor/rocksdb/util/slice_transform_test.cc +159 -0
- package/vendor/rocksdb/util/status.cc +162 -0
- package/vendor/rocksdb/util/stderr_logger.cc +30 -0
- package/vendor/rocksdb/util/stderr_logger.h +31 -0
- package/vendor/rocksdb/util/stop_watch.h +136 -0
- package/vendor/rocksdb/util/string_util.cc +502 -0
- package/vendor/rocksdb/util/string_util.h +175 -0
- package/vendor/rocksdb/util/thread_guard.h +41 -0
- package/vendor/rocksdb/util/thread_list_test.cc +362 -0
- package/vendor/rocksdb/util/thread_local.cc +521 -0
- package/vendor/rocksdb/util/thread_local.h +100 -0
- package/vendor/rocksdb/util/thread_local_test.cc +578 -0
- package/vendor/rocksdb/util/thread_operation.h +113 -0
- package/vendor/rocksdb/util/threadpool_imp.cc +551 -0
- package/vendor/rocksdb/util/threadpool_imp.h +120 -0
- package/vendor/rocksdb/util/timer.h +340 -0
- package/vendor/rocksdb/util/timer_queue.h +231 -0
- package/vendor/rocksdb/util/timer_queue_test.cc +73 -0
- package/vendor/rocksdb/util/timer_test.cc +402 -0
- package/vendor/rocksdb/util/udt_util.h +77 -0
- package/vendor/rocksdb/util/user_comparator_wrapper.h +64 -0
- package/vendor/rocksdb/util/vector_iterator.h +118 -0
- package/vendor/rocksdb/util/work_queue.h +150 -0
- package/vendor/rocksdb/util/work_queue_test.cc +272 -0
- package/vendor/rocksdb/util/xxhash.cc +48 -0
- package/vendor/rocksdb/util/xxhash.h +6360 -0
- package/vendor/rocksdb/util/xxph3.h +1764 -0
- package/vendor/rocksdb/utilities/agg_merge/agg_merge.cc +238 -0
- package/vendor/rocksdb/utilities/agg_merge/agg_merge_impl.h +49 -0
- package/vendor/rocksdb/utilities/agg_merge/agg_merge_test.cc +135 -0
- package/vendor/rocksdb/utilities/agg_merge/test_agg_merge.cc +104 -0
- package/vendor/rocksdb/utilities/agg_merge/test_agg_merge.h +47 -0
- package/vendor/rocksdb/utilities/backup/backup_engine.cc +3355 -0
- package/vendor/rocksdb/utilities/backup/backup_engine_impl.h +34 -0
- package/vendor/rocksdb/utilities/backup/backup_engine_test.cc +4414 -0
- package/vendor/rocksdb/utilities/blob_db/blob_compaction_filter.cc +488 -0
- package/vendor/rocksdb/utilities/blob_db/blob_compaction_filter.h +202 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db.cc +112 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db.h +264 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_gc_stats.h +54 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_impl.cc +2185 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_impl.h +501 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.cc +111 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_iterator.h +148 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_listener.h +69 -0
- package/vendor/rocksdb/utilities/blob_db/blob_db_test.cc +2430 -0
- package/vendor/rocksdb/utilities/blob_db/blob_dump_tool.cc +280 -0
- package/vendor/rocksdb/utilities/blob_db/blob_dump_tool.h +56 -0
- package/vendor/rocksdb/utilities/blob_db/blob_file.cc +316 -0
- package/vendor/rocksdb/utilities/blob_db/blob_file.h +244 -0
- package/vendor/rocksdb/utilities/cache_dump_load.cc +67 -0
- package/vendor/rocksdb/utilities/cache_dump_load_impl.cc +369 -0
- package/vendor/rocksdb/utilities/cache_dump_load_impl.h +356 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_compaction_filter.cc +106 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_compaction_filter.h +57 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_format_test.cc +377 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_functional_test.cc +444 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_options.h +41 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_row_merge_test.cc +98 -0
- package/vendor/rocksdb/utilities/cassandra/cassandra_serialize_test.cc +164 -0
- package/vendor/rocksdb/utilities/cassandra/format.cc +367 -0
- package/vendor/rocksdb/utilities/cassandra/format.h +183 -0
- package/vendor/rocksdb/utilities/cassandra/merge_operator.cc +80 -0
- package/vendor/rocksdb/utilities/cassandra/merge_operator.h +44 -0
- package/vendor/rocksdb/utilities/cassandra/serialize.h +81 -0
- package/vendor/rocksdb/utilities/cassandra/test_utils.cc +69 -0
- package/vendor/rocksdb/utilities/cassandra/test_utils.h +42 -0
- package/vendor/rocksdb/utilities/checkpoint/checkpoint_impl.cc +470 -0
- package/vendor/rocksdb/utilities/checkpoint/checkpoint_impl.h +64 -0
- package/vendor/rocksdb/utilities/checkpoint/checkpoint_test.cc +988 -0
- package/vendor/rocksdb/utilities/compaction_filters/layered_compaction_filter_base.h +41 -0
- package/vendor/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc +24 -0
- package/vendor/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.h +26 -0
- package/vendor/rocksdb/utilities/compaction_filters.cc +52 -0
- package/vendor/rocksdb/utilities/convenience/info_log_finder.cc +26 -0
- package/vendor/rocksdb/utilities/counted_fs.cc +379 -0
- package/vendor/rocksdb/utilities/counted_fs.h +158 -0
- package/vendor/rocksdb/utilities/debug.cc +118 -0
- package/vendor/rocksdb/utilities/env_mirror.cc +273 -0
- package/vendor/rocksdb/utilities/env_mirror_test.cc +216 -0
- package/vendor/rocksdb/utilities/env_timed.cc +181 -0
- package/vendor/rocksdb/utilities/env_timed.h +95 -0
- package/vendor/rocksdb/utilities/env_timed_test.cc +34 -0
- package/vendor/rocksdb/utilities/fault_injection_env.cc +555 -0
- package/vendor/rocksdb/utilities/fault_injection_env.h +258 -0
- package/vendor/rocksdb/utilities/fault_injection_fs.cc +1071 -0
- package/vendor/rocksdb/utilities/fault_injection_fs.h +593 -0
- package/vendor/rocksdb/utilities/fault_injection_secondary_cache.cc +136 -0
- package/vendor/rocksdb/utilities/fault_injection_secondary_cache.h +109 -0
- package/vendor/rocksdb/utilities/leveldb_options/leveldb_options.cc +57 -0
- package/vendor/rocksdb/utilities/memory/memory_test.cc +269 -0
- package/vendor/rocksdb/utilities/memory/memory_util.cc +50 -0
- package/vendor/rocksdb/utilities/memory_allocators.h +103 -0
- package/vendor/rocksdb/utilities/merge_operators/bytesxor.cc +57 -0
- package/vendor/rocksdb/utilities/merge_operators/bytesxor.h +40 -0
- package/vendor/rocksdb/utilities/merge_operators/max.cc +64 -0
- package/vendor/rocksdb/utilities/merge_operators/max_operator.h +35 -0
- package/vendor/rocksdb/utilities/merge_operators/put.cc +74 -0
- package/vendor/rocksdb/utilities/merge_operators/put_operator.h +56 -0
- package/vendor/rocksdb/utilities/merge_operators/sortlist.cc +95 -0
- package/vendor/rocksdb/utilities/merge_operators/sortlist.h +42 -0
- package/vendor/rocksdb/utilities/merge_operators/string_append/stringappend.cc +76 -0
- package/vendor/rocksdb/utilities/merge_operators/string_append/stringappend.h +32 -0
- package/vendor/rocksdb/utilities/merge_operators/string_append/stringappend2.cc +130 -0
- package/vendor/rocksdb/utilities/merge_operators/string_append/stringappend2.h +52 -0
- package/vendor/rocksdb/utilities/merge_operators/string_append/stringappend_test.cc +636 -0
- package/vendor/rocksdb/utilities/merge_operators/uint64add.cc +56 -0
- package/vendor/rocksdb/utilities/merge_operators/uint64add.h +35 -0
- package/vendor/rocksdb/utilities/merge_operators.cc +115 -0
- package/vendor/rocksdb/utilities/merge_operators.h +36 -0
- package/vendor/rocksdb/utilities/object_registry.cc +381 -0
- package/vendor/rocksdb/utilities/object_registry_test.cc +862 -0
- package/vendor/rocksdb/utilities/option_change_migration/option_change_migration.cc +176 -0
- package/vendor/rocksdb/utilities/option_change_migration/option_change_migration_test.cc +548 -0
- package/vendor/rocksdb/utilities/options/options_util.cc +117 -0
- package/vendor/rocksdb/utilities/options/options_util_test.cc +782 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier.cc +420 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier.h +154 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_file.cc +608 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_file.h +291 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_file_buffer.h +127 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_metadata.cc +84 -0
- package/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_metadata.h +122 -0
- package/vendor/rocksdb/utilities/persistent_cache/hash_table.h +237 -0
- package/vendor/rocksdb/utilities/persistent_cache/hash_table_bench.cc +310 -0
- package/vendor/rocksdb/utilities/persistent_cache/hash_table_evictable.h +166 -0
- package/vendor/rocksdb/utilities/persistent_cache/hash_table_test.cc +161 -0
- package/vendor/rocksdb/utilities/persistent_cache/lrulist.h +172 -0
- package/vendor/rocksdb/utilities/persistent_cache/persistent_cache_bench.cc +355 -0
- package/vendor/rocksdb/utilities/persistent_cache/persistent_cache_test.cc +413 -0
- package/vendor/rocksdb/utilities/persistent_cache/persistent_cache_test.h +284 -0
- package/vendor/rocksdb/utilities/persistent_cache/persistent_cache_tier.cc +165 -0
- package/vendor/rocksdb/utilities/persistent_cache/persistent_cache_tier.h +340 -0
- package/vendor/rocksdb/utilities/persistent_cache/persistent_cache_util.h +67 -0
- package/vendor/rocksdb/utilities/persistent_cache/volatile_tier_impl.cc +138 -0
- package/vendor/rocksdb/utilities/persistent_cache/volatile_tier_impl.h +139 -0
- package/vendor/rocksdb/utilities/simulator_cache/cache_simulator.cc +287 -0
- package/vendor/rocksdb/utilities/simulator_cache/cache_simulator.h +231 -0
- package/vendor/rocksdb/utilities/simulator_cache/cache_simulator_test.cc +497 -0
- package/vendor/rocksdb/utilities/simulator_cache/sim_cache.cc +372 -0
- package/vendor/rocksdb/utilities/simulator_cache/sim_cache_test.cc +226 -0
- package/vendor/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.cc +221 -0
- package/vendor/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.h +68 -0
- package/vendor/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc +238 -0
- package/vendor/rocksdb/utilities/trace/file_trace_reader_writer.cc +133 -0
- package/vendor/rocksdb/utilities/trace/file_trace_reader_writer.h +48 -0
- package/vendor/rocksdb/utilities/trace/replayer_impl.cc +314 -0
- package/vendor/rocksdb/utilities/trace/replayer_impl.h +84 -0
- package/vendor/rocksdb/utilities/transactions/lock/lock_manager.cc +27 -0
- package/vendor/rocksdb/utilities/transactions/lock/lock_manager.h +80 -0
- package/vendor/rocksdb/utilities/transactions/lock/lock_tracker.h +207 -0
- package/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager.cc +719 -0
- package/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager.h +222 -0
- package/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager_test.cc +170 -0
- package/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager_test.h +324 -0
- package/vendor/rocksdb/utilities/transactions/lock/point/point_lock_tracker.cc +255 -0
- package/vendor/rocksdb/utilities/transactions/lock/point/point_lock_tracker.h +97 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_lock_manager.h +34 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_locking_test.cc +448 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/COPYING.AGPLv3 +661 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/COPYING.APACHEv2 +174 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/COPYING.GPLv2 +339 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/README +13 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/db.h +76 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/ft/comparator.h +138 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/ft/ft-status.h +102 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/concurrent_tree.cc +137 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/concurrent_tree.h +174 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/keyrange.cc +220 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/keyrange.h +141 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.cc +525 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.h +255 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/locktree.cc +1021 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/locktree.h +580 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/manager.cc +525 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/range_buffer.cc +263 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/range_buffer.h +178 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/treenode.cc +518 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/treenode.h +302 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/txnid_set.cc +118 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/txnid_set.h +92 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/wfg.cc +211 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/wfg.h +124 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/memory.h +215 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_assert_subst.h +39 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_atomic.h +130 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_external_pthread.h +83 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_instrumentation.h +286 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_portability.h +87 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_pthread.h +520 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_race_tools.h +179 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h +197 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/txn_subst.h +27 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/standalone_port.cc +130 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/dbt.cc +151 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/dbt.h +98 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/growable_array.h +144 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/memarena.cc +199 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/memarena.h +141 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/omt.h +794 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/omt_impl.h +1295 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/partitioned_counter.h +165 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/status.h +76 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.cc +501 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.h +135 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_tracker.cc +154 -0
- package/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_tracker.h +146 -0
- package/vendor/rocksdb/utilities/transactions/optimistic_transaction.cc +194 -0
- package/vendor/rocksdb/utilities/transactions/optimistic_transaction.h +99 -0
- package/vendor/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc +109 -0
- package/vendor/rocksdb/utilities/transactions/optimistic_transaction_db_impl.h +86 -0
- package/vendor/rocksdb/utilities/transactions/optimistic_transaction_test.cc +1479 -0
- package/vendor/rocksdb/utilities/transactions/pessimistic_transaction.cc +1177 -0
- package/vendor/rocksdb/utilities/transactions/pessimistic_transaction.h +311 -0
- package/vendor/rocksdb/utilities/transactions/pessimistic_transaction_db.cc +780 -0
- package/vendor/rocksdb/utilities/transactions/pessimistic_transaction_db.h +316 -0
- package/vendor/rocksdb/utilities/transactions/snapshot_checker.cc +37 -0
- package/vendor/rocksdb/utilities/transactions/timestamped_snapshot_test.cc +457 -0
- package/vendor/rocksdb/utilities/transactions/transaction_base.cc +757 -0
- package/vendor/rocksdb/utilities/transactions/transaction_base.h +382 -0
- package/vendor/rocksdb/utilities/transactions/transaction_db_mutex_impl.cc +133 -0
- package/vendor/rocksdb/utilities/transactions/transaction_db_mutex_impl.h +24 -0
- package/vendor/rocksdb/utilities/transactions/transaction_test.cc +6751 -0
- package/vendor/rocksdb/utilities/transactions/transaction_test.h +578 -0
- package/vendor/rocksdb/utilities/transactions/transaction_util.cc +204 -0
- package/vendor/rocksdb/utilities/transactions/transaction_util.h +83 -0
- package/vendor/rocksdb/utilities/transactions/write_committed_transaction_ts_test.cc +578 -0
- package/vendor/rocksdb/utilities/transactions/write_prepared_transaction_test.cc +4066 -0
- package/vendor/rocksdb/utilities/transactions/write_prepared_txn.cc +515 -0
- package/vendor/rocksdb/utilities/transactions/write_prepared_txn.h +117 -0
- package/vendor/rocksdb/utilities/transactions/write_prepared_txn_db.cc +1038 -0
- package/vendor/rocksdb/utilities/transactions/write_prepared_txn_db.h +1123 -0
- package/vendor/rocksdb/utilities/transactions/write_unprepared_transaction_test.cc +779 -0
- package/vendor/rocksdb/utilities/transactions/write_unprepared_txn.cc +1056 -0
- package/vendor/rocksdb/utilities/transactions/write_unprepared_txn.h +339 -0
- package/vendor/rocksdb/utilities/transactions/write_unprepared_txn_db.cc +476 -0
- package/vendor/rocksdb/utilities/transactions/write_unprepared_txn_db.h +106 -0
- package/vendor/rocksdb/utilities/ttl/db_ttl_impl.cc +617 -0
- package/vendor/rocksdb/utilities/ttl/db_ttl_impl.h +243 -0
- package/vendor/rocksdb/utilities/ttl/ttl_test.cc +913 -0
- package/vendor/rocksdb/utilities/util_merge_operators_test.cc +100 -0
- package/vendor/rocksdb/utilities/wal_filter.cc +22 -0
- package/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index.cc +694 -0
- package/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc +742 -0
- package/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.h +342 -0
- package/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index_test.cc +2409 -0
|
@@ -0,0 +1,1849 @@
|
|
|
1
|
+
// Copyright (c) 2019-present, Facebook, Inc. All rights reserved.
|
|
2
|
+
// This source code is licensed under both the GPLv2 (found in the
|
|
3
|
+
// COPYING file in the root directory) and Apache 2.0 License
|
|
4
|
+
// (found in the LICENSE.Apache file in the root directory).
|
|
5
|
+
//
|
|
6
|
+
// A FileSystem is an interface used by the rocksdb implementation to access
|
|
7
|
+
// storage functionality like the filesystem etc. Callers
|
|
8
|
+
// may wish to provide a custom FileSystem object when opening a database to
|
|
9
|
+
// get fine gain control; e.g., to rate limit file system operations.
|
|
10
|
+
//
|
|
11
|
+
// All FileSystem implementations are safe for concurrent access from
|
|
12
|
+
// multiple threads without any external synchronization.
|
|
13
|
+
//
|
|
14
|
+
// WARNING: Since this is a new interface, it is expected that there will be
|
|
15
|
+
// some changes as storage systems are ported over.
|
|
16
|
+
|
|
17
|
+
#pragma once
|
|
18
|
+
|
|
19
|
+
#include <stdint.h>
|
|
20
|
+
|
|
21
|
+
#include <chrono>
|
|
22
|
+
#include <cstdarg>
|
|
23
|
+
#include <functional>
|
|
24
|
+
#include <limits>
|
|
25
|
+
#include <memory>
|
|
26
|
+
#include <sstream>
|
|
27
|
+
#include <string>
|
|
28
|
+
#include <unordered_map>
|
|
29
|
+
#include <vector>
|
|
30
|
+
|
|
31
|
+
#include "rocksdb/customizable.h"
|
|
32
|
+
#include "rocksdb/env.h"
|
|
33
|
+
#include "rocksdb/io_status.h"
|
|
34
|
+
#include "rocksdb/options.h"
|
|
35
|
+
#include "rocksdb/table.h"
|
|
36
|
+
#include "rocksdb/thread_status.h"
|
|
37
|
+
|
|
38
|
+
namespace ROCKSDB_NAMESPACE {
|
|
39
|
+
|
|
40
|
+
class FileLock;
|
|
41
|
+
class FSDirectory;
|
|
42
|
+
class FSRandomAccessFile;
|
|
43
|
+
class FSRandomRWFile;
|
|
44
|
+
class FSSequentialFile;
|
|
45
|
+
class FSWritableFile;
|
|
46
|
+
class Logger;
|
|
47
|
+
class Slice;
|
|
48
|
+
struct ImmutableDBOptions;
|
|
49
|
+
struct MutableDBOptions;
|
|
50
|
+
class RateLimiter;
|
|
51
|
+
struct ConfigOptions;
|
|
52
|
+
|
|
53
|
+
using AccessPattern = RandomAccessFile::AccessPattern;
|
|
54
|
+
using FileAttributes = Env::FileAttributes;
|
|
55
|
+
|
|
56
|
+
// DEPRECATED
|
|
57
|
+
// Priority of an IO request. This is a hint and does not guarantee any
|
|
58
|
+
// particular QoS.
|
|
59
|
+
// IO_LOW - Typically background reads/writes such as compaction/flush
|
|
60
|
+
// IO_HIGH - Typically user reads/synchronous WAL writes
|
|
61
|
+
enum class IOPriority : uint8_t {
|
|
62
|
+
kIOLow,
|
|
63
|
+
kIOHigh,
|
|
64
|
+
kIOTotal,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// Type of the data begin read/written. It can be passed down as a flag
|
|
68
|
+
// for the FileSystem implementation to optionally handle different types in
|
|
69
|
+
// different ways
|
|
70
|
+
enum class IOType : uint8_t {
|
|
71
|
+
kData,
|
|
72
|
+
kFilter,
|
|
73
|
+
kIndex,
|
|
74
|
+
kMetadata,
|
|
75
|
+
kWAL,
|
|
76
|
+
kManifest,
|
|
77
|
+
kLog,
|
|
78
|
+
kUnknown,
|
|
79
|
+
kInvalid,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// Per-request options that can be passed down to the FileSystem
|
|
83
|
+
// implementation. These are hints and are not necessarily guaranteed to be
|
|
84
|
+
// honored. More hints can be added here in the future to indicate things like
|
|
85
|
+
// storage media (HDD/SSD) to be used, replication level etc.
|
|
86
|
+
struct IOOptions {
|
|
87
|
+
// Timeout for the operation in microseconds
|
|
88
|
+
std::chrono::microseconds timeout;
|
|
89
|
+
|
|
90
|
+
// DEPRECATED
|
|
91
|
+
// Priority - high or low
|
|
92
|
+
IOPriority prio;
|
|
93
|
+
|
|
94
|
+
// Priority used to charge rate limiter configured in file system level (if
|
|
95
|
+
// any)
|
|
96
|
+
// Limitation: right now RocksDB internal does not consider this
|
|
97
|
+
// rate_limiter_priority
|
|
98
|
+
Env::IOPriority rate_limiter_priority;
|
|
99
|
+
|
|
100
|
+
// Type of data being read/written
|
|
101
|
+
IOType type;
|
|
102
|
+
|
|
103
|
+
// EXPERIMENTAL
|
|
104
|
+
// An option map that's opaque to RocksDB. It can be used to implement a
|
|
105
|
+
// custom contract between a FileSystem user and the provider. This is only
|
|
106
|
+
// useful in cases where a RocksDB user directly uses the FileSystem or file
|
|
107
|
+
// object for their own purposes, and wants to pass extra options to APIs
|
|
108
|
+
// such as NewRandomAccessFile and NewWritableFile.
|
|
109
|
+
std::unordered_map<std::string, std::string> property_bag;
|
|
110
|
+
|
|
111
|
+
// Force directory fsync, some file systems like btrfs may skip directory
|
|
112
|
+
// fsync, set this to force the fsync
|
|
113
|
+
bool force_dir_fsync;
|
|
114
|
+
|
|
115
|
+
// Can be used by underlying file systems to skip recursing through sub
|
|
116
|
+
// directories and list only files in GetChildren API.
|
|
117
|
+
bool do_not_recurse;
|
|
118
|
+
|
|
119
|
+
Env::IOActivity io_activity = Env::IOActivity::kUnknown;
|
|
120
|
+
|
|
121
|
+
IOOptions() : IOOptions(false) {}
|
|
122
|
+
|
|
123
|
+
explicit IOOptions(bool force_dir_fsync_)
|
|
124
|
+
: timeout(std::chrono::microseconds::zero()),
|
|
125
|
+
prio(IOPriority::kIOLow),
|
|
126
|
+
rate_limiter_priority(Env::IO_TOTAL),
|
|
127
|
+
type(IOType::kUnknown),
|
|
128
|
+
force_dir_fsync(force_dir_fsync_),
|
|
129
|
+
do_not_recurse(false) {}
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
struct DirFsyncOptions {
|
|
133
|
+
enum FsyncReason : uint8_t {
|
|
134
|
+
kNewFileSynced,
|
|
135
|
+
kFileRenamed,
|
|
136
|
+
kDirRenamed,
|
|
137
|
+
kFileDeleted,
|
|
138
|
+
kDefault,
|
|
139
|
+
} reason;
|
|
140
|
+
|
|
141
|
+
std::string renamed_new_name; // for kFileRenamed
|
|
142
|
+
// add other options for other FsyncReason
|
|
143
|
+
|
|
144
|
+
DirFsyncOptions();
|
|
145
|
+
|
|
146
|
+
explicit DirFsyncOptions(std::string file_renamed_new_name);
|
|
147
|
+
|
|
148
|
+
explicit DirFsyncOptions(FsyncReason fsync_reason);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
// File scope options that control how a file is opened/created and accessed
|
|
152
|
+
// while its open. We may add more options here in the future such as
|
|
153
|
+
// redundancy level, media to use etc.
|
|
154
|
+
struct FileOptions : EnvOptions {
|
|
155
|
+
// Embedded IOOptions to control the parameters for any IOs that need
|
|
156
|
+
// to be issued for the file open/creation
|
|
157
|
+
IOOptions io_options;
|
|
158
|
+
|
|
159
|
+
// EXPERIMENTAL
|
|
160
|
+
// The feature is in development and is subject to change.
|
|
161
|
+
// When creating a new file, set the temperature of the file so that
|
|
162
|
+
// underlying file systems can put it with appropriate storage media and/or
|
|
163
|
+
// coding.
|
|
164
|
+
Temperature temperature = Temperature::kUnknown;
|
|
165
|
+
|
|
166
|
+
// The checksum type that is used to calculate the checksum value for
|
|
167
|
+
// handoff during file writes.
|
|
168
|
+
ChecksumType handoff_checksum_type;
|
|
169
|
+
|
|
170
|
+
FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {}
|
|
171
|
+
|
|
172
|
+
FileOptions(const DBOptions& opts)
|
|
173
|
+
: EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {}
|
|
174
|
+
|
|
175
|
+
FileOptions(const EnvOptions& opts)
|
|
176
|
+
: EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {}
|
|
177
|
+
|
|
178
|
+
FileOptions(const FileOptions& opts)
|
|
179
|
+
: EnvOptions(opts),
|
|
180
|
+
io_options(opts.io_options),
|
|
181
|
+
temperature(opts.temperature),
|
|
182
|
+
handoff_checksum_type(opts.handoff_checksum_type) {}
|
|
183
|
+
|
|
184
|
+
FileOptions& operator=(const FileOptions&) = default;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
// A structure to pass back some debugging information from the FileSystem
|
|
188
|
+
// implementation to RocksDB in case of an IO error
|
|
189
|
+
struct IODebugContext {
|
|
190
|
+
// file_path to be filled in by RocksDB in case of an error
|
|
191
|
+
std::string file_path;
|
|
192
|
+
|
|
193
|
+
// A map of counter names to values - set by the FileSystem implementation
|
|
194
|
+
std::map<std::string, uint64_t> counters;
|
|
195
|
+
|
|
196
|
+
// To be set by the FileSystem implementation
|
|
197
|
+
std::string msg;
|
|
198
|
+
|
|
199
|
+
// To be set by the underlying FileSystem implementation.
|
|
200
|
+
std::string request_id;
|
|
201
|
+
|
|
202
|
+
// In order to log required information in IO tracing for different
|
|
203
|
+
// operations, Each bit in trace_data stores which corresponding info from
|
|
204
|
+
// IODebugContext will be added in the trace. Foreg, if trace_data = 1, it
|
|
205
|
+
// means bit at position 0 is set so TraceData::kRequestID (request_id) will
|
|
206
|
+
// be logged in the trace record.
|
|
207
|
+
//
|
|
208
|
+
enum TraceData : char {
|
|
209
|
+
// The value of each enum represents the bitwise position for
|
|
210
|
+
// that information in trace_data which will be used by IOTracer for
|
|
211
|
+
// tracing. Make sure to add them sequentially.
|
|
212
|
+
kRequestID = 0,
|
|
213
|
+
};
|
|
214
|
+
uint64_t trace_data = 0;
|
|
215
|
+
|
|
216
|
+
IODebugContext() {}
|
|
217
|
+
|
|
218
|
+
void AddCounter(std::string& name, uint64_t value) {
|
|
219
|
+
counters.emplace(name, value);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// Called by underlying file system to set request_id and log request_id in
|
|
223
|
+
// IOTracing.
|
|
224
|
+
void SetRequestId(const std::string& _request_id) {
|
|
225
|
+
request_id = _request_id;
|
|
226
|
+
trace_data |= (1 << TraceData::kRequestID);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
std::string ToString() {
|
|
230
|
+
std::ostringstream ss;
|
|
231
|
+
ss << file_path << ", ";
|
|
232
|
+
for (auto counter : counters) {
|
|
233
|
+
ss << counter.first << " = " << counter.second << ",";
|
|
234
|
+
}
|
|
235
|
+
ss << msg;
|
|
236
|
+
return ss.str();
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// A function pointer type for custom destruction of void pointer passed to
|
|
241
|
+
// ReadAsync API. RocksDB/caller is responsible for deleting the void pointer
|
|
242
|
+
// allocated by FS in ReadAsync API.
|
|
243
|
+
using IOHandleDeleter = std::function<void(void*)>;
|
|
244
|
+
|
|
245
|
+
// The FileSystem, FSSequentialFile, FSRandomAccessFile, FSWritableFile,
|
|
246
|
+
// FSRandomRWFileclass, and FSDIrectory classes define the interface between
|
|
247
|
+
// RocksDB and storage systems, such as Posix filesystems,
|
|
248
|
+
// remote filesystems etc.
|
|
249
|
+
// The interface allows for fine grained control of individual IO operations,
|
|
250
|
+
// such as setting a timeout, prioritization, hints on data placement,
|
|
251
|
+
// different handling based on type of IO etc.
|
|
252
|
+
// This is accomplished by passing an instance of IOOptions to every
|
|
253
|
+
// API call that can potentially perform IO. Additionally, each such API is
|
|
254
|
+
// passed a pointer to a IODebugContext structure that can be used by the
|
|
255
|
+
// storage system to include troubleshooting information. The return values
|
|
256
|
+
// of the APIs is of type IOStatus, which can indicate an error code/sub-code,
|
|
257
|
+
// as well as metadata about the error such as its scope and whether its
|
|
258
|
+
// retryable.
|
|
259
|
+
// NewCompositeEnv can be used to create an Env with a custom FileSystem for
|
|
260
|
+
// DBOptions::env.
|
|
261
|
+
//
|
|
262
|
+
// Exceptions MUST NOT propagate out of overridden functions into RocksDB,
|
|
263
|
+
// because RocksDB is not exception-safe. This could cause undefined behavior
|
|
264
|
+
// including data loss, unreported corruption, deadlocks, and more.
|
|
265
|
+
class FileSystem : public Customizable {
|
|
266
|
+
public:
|
|
267
|
+
FileSystem();
|
|
268
|
+
|
|
269
|
+
// No copying allowed
|
|
270
|
+
FileSystem(const FileSystem&) = delete;
|
|
271
|
+
|
|
272
|
+
virtual ~FileSystem();
|
|
273
|
+
|
|
274
|
+
static const char* Type() { return "FileSystem"; }
|
|
275
|
+
static const char* kDefaultName() { return "DefaultFileSystem"; }
|
|
276
|
+
|
|
277
|
+
// Loads the FileSystem specified by the input value into the result
|
|
278
|
+
// @see Customizable for a more detailed description of the parameters and
|
|
279
|
+
// return codes
|
|
280
|
+
// @param config_options Controls how the FileSystem is loaded
|
|
281
|
+
// @param value The name and optional properties describing the file system
|
|
282
|
+
// to load.
|
|
283
|
+
// @param result On success, returns the loaded FileSystem
|
|
284
|
+
// @return OK if the FileSystem was successfully loaded.
|
|
285
|
+
// @return not-OK if the load failed.
|
|
286
|
+
static Status CreateFromString(const ConfigOptions& options,
|
|
287
|
+
const std::string& value,
|
|
288
|
+
std::shared_ptr<FileSystem>* result);
|
|
289
|
+
|
|
290
|
+
// Return a default FileSystem suitable for the current operating
|
|
291
|
+
// system.
|
|
292
|
+
static std::shared_ptr<FileSystem> Default();
|
|
293
|
+
|
|
294
|
+
// Handles the event when a new DB or a new ColumnFamily starts using the
|
|
295
|
+
// specified data paths.
|
|
296
|
+
//
|
|
297
|
+
// The data paths might be shared by different DBs or ColumnFamilies,
|
|
298
|
+
// so RegisterDbPaths might be called with the same data paths.
|
|
299
|
+
// For example, when CreateColumnFamily is called multiple times with the same
|
|
300
|
+
// data path, RegisterDbPaths will also be called with the same data path.
|
|
301
|
+
//
|
|
302
|
+
// If the return status is ok, then the paths must be correspondingly
|
|
303
|
+
// called in UnregisterDbPaths;
|
|
304
|
+
// otherwise this method should have no side effect, and UnregisterDbPaths
|
|
305
|
+
// do not need to be called for the paths.
|
|
306
|
+
//
|
|
307
|
+
// Different implementations may take different actions.
|
|
308
|
+
// By default, it's a no-op and returns Status::OK.
|
|
309
|
+
virtual Status RegisterDbPaths(const std::vector<std::string>& /*paths*/) {
|
|
310
|
+
return Status::OK();
|
|
311
|
+
}
|
|
312
|
+
// Handles the event a DB or a ColumnFamily stops using the specified data
|
|
313
|
+
// paths.
|
|
314
|
+
//
|
|
315
|
+
// It should be called corresponding to each successful RegisterDbPaths.
|
|
316
|
+
//
|
|
317
|
+
// Different implementations may take different actions.
|
|
318
|
+
// By default, it's a no-op and returns Status::OK.
|
|
319
|
+
virtual Status UnregisterDbPaths(const std::vector<std::string>& /*paths*/) {
|
|
320
|
+
return Status::OK();
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// Create a brand new sequentially-readable file with the specified name.
|
|
324
|
+
// On success, stores a pointer to the new file in *result and returns OK.
|
|
325
|
+
// On failure stores nullptr in *result and returns non-OK. If the file does
|
|
326
|
+
// not exist, returns a non-OK status.
|
|
327
|
+
//
|
|
328
|
+
// The returned file will only be accessed by one thread at a time.
|
|
329
|
+
virtual IOStatus NewSequentialFile(const std::string& fname,
|
|
330
|
+
const FileOptions& file_opts,
|
|
331
|
+
std::unique_ptr<FSSequentialFile>* result,
|
|
332
|
+
IODebugContext* dbg) = 0;
|
|
333
|
+
|
|
334
|
+
// Create a brand new random access read-only file with the
|
|
335
|
+
// specified name. On success, stores a pointer to the new file in
|
|
336
|
+
// *result and returns OK. On failure stores nullptr in *result and
|
|
337
|
+
// returns non-OK. If the file does not exist, returns a non-OK
|
|
338
|
+
// status.
|
|
339
|
+
//
|
|
340
|
+
// The returned file may be concurrently accessed by multiple threads.
|
|
341
|
+
virtual IOStatus NewRandomAccessFile(
|
|
342
|
+
const std::string& fname, const FileOptions& file_opts,
|
|
343
|
+
std::unique_ptr<FSRandomAccessFile>* result, IODebugContext* dbg) = 0;
|
|
344
|
+
// These values match Linux definition
|
|
345
|
+
// https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/fcntl.h#n56
|
|
346
|
+
enum WriteLifeTimeHint {
|
|
347
|
+
kWLTHNotSet = 0, // No hint information set
|
|
348
|
+
kWLTHNone, // No hints about write life time
|
|
349
|
+
kWLTHShort, // Data written has a short life time
|
|
350
|
+
kWLTHMedium, // Data written has a medium life time
|
|
351
|
+
kWLTHLong, // Data written has a long life time
|
|
352
|
+
kWLTHExtreme, // Data written has an extremely long life time
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
// Create an object that writes to a new file with the specified
|
|
356
|
+
// name. Deletes any existing file with the same name and creates a
|
|
357
|
+
// new file. On success, stores a pointer to the new file in
|
|
358
|
+
// *result and returns OK. On failure stores nullptr in *result and
|
|
359
|
+
// returns non-OK.
|
|
360
|
+
//
|
|
361
|
+
// The returned file will only be accessed by one thread at a time.
|
|
362
|
+
virtual IOStatus NewWritableFile(const std::string& fname,
|
|
363
|
+
const FileOptions& file_opts,
|
|
364
|
+
std::unique_ptr<FSWritableFile>* result,
|
|
365
|
+
IODebugContext* dbg) = 0;
|
|
366
|
+
|
|
367
|
+
// Create an object that writes to a file with the specified name.
|
|
368
|
+
// `FSWritableFile::Append()`s will append after any existing content. If the
|
|
369
|
+
// file does not already exist, creates it.
|
|
370
|
+
//
|
|
371
|
+
// On success, stores a pointer to the file in *result and returns OK. On
|
|
372
|
+
// failure stores nullptr in *result and returns non-OK.
|
|
373
|
+
//
|
|
374
|
+
// The returned file will only be accessed by one thread at a time.
|
|
375
|
+
virtual IOStatus ReopenWritableFile(
|
|
376
|
+
const std::string& /*fname*/, const FileOptions& /*options*/,
|
|
377
|
+
std::unique_ptr<FSWritableFile>* /*result*/, IODebugContext* /*dbg*/) {
|
|
378
|
+
return IOStatus::NotSupported("ReopenWritableFile");
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// Reuse an existing file by renaming it and opening it as writable.
|
|
382
|
+
virtual IOStatus ReuseWritableFile(const std::string& fname,
|
|
383
|
+
const std::string& old_fname,
|
|
384
|
+
const FileOptions& file_opts,
|
|
385
|
+
std::unique_ptr<FSWritableFile>* result,
|
|
386
|
+
IODebugContext* dbg);
|
|
387
|
+
|
|
388
|
+
// Open `fname` for random read and write, if file doesn't exist the file
|
|
389
|
+
// will be created. On success, stores a pointer to the new file in
|
|
390
|
+
// *result and returns OK. On failure returns non-OK.
|
|
391
|
+
//
|
|
392
|
+
// The returned file will only be accessed by one thread at a time.
|
|
393
|
+
virtual IOStatus NewRandomRWFile(const std::string& /*fname*/,
|
|
394
|
+
const FileOptions& /*options*/,
|
|
395
|
+
std::unique_ptr<FSRandomRWFile>* /*result*/,
|
|
396
|
+
IODebugContext* /*dbg*/) {
|
|
397
|
+
return IOStatus::NotSupported(
|
|
398
|
+
"RandomRWFile is not implemented in this FileSystem");
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// Opens `fname` as a memory-mapped file for read and write (in-place updates
|
|
402
|
+
// only, i.e., no appends). On success, stores a raw buffer covering the whole
|
|
403
|
+
// file in `*result`. The file must exist prior to this call.
|
|
404
|
+
virtual IOStatus NewMemoryMappedFileBuffer(
|
|
405
|
+
const std::string& /*fname*/,
|
|
406
|
+
std::unique_ptr<MemoryMappedFileBuffer>* /*result*/) {
|
|
407
|
+
return IOStatus::NotSupported(
|
|
408
|
+
"MemoryMappedFileBuffer is not implemented in this FileSystem");
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Create an object that represents a directory. Will fail if directory
|
|
412
|
+
// doesn't exist. If the directory exists, it will open the directory
|
|
413
|
+
// and create a new Directory object.
|
|
414
|
+
//
|
|
415
|
+
// On success, stores a pointer to the new Directory in
|
|
416
|
+
// *result and returns OK. On failure stores nullptr in *result and
|
|
417
|
+
// returns non-OK.
|
|
418
|
+
virtual IOStatus NewDirectory(const std::string& name,
|
|
419
|
+
const IOOptions& io_opts,
|
|
420
|
+
std::unique_ptr<FSDirectory>* result,
|
|
421
|
+
IODebugContext* dbg) = 0;
|
|
422
|
+
|
|
423
|
+
// Returns OK if the named file exists.
|
|
424
|
+
// NotFound if the named file does not exist,
|
|
425
|
+
// the calling process does not have permission to determine
|
|
426
|
+
// whether this file exists, or if the path is invalid.
|
|
427
|
+
// IOError if an IO Error was encountered
|
|
428
|
+
virtual IOStatus FileExists(const std::string& fname,
|
|
429
|
+
const IOOptions& options,
|
|
430
|
+
IODebugContext* dbg) = 0;
|
|
431
|
+
|
|
432
|
+
// Store in *result the names of the children of the specified directory.
|
|
433
|
+
// The names are relative to "dir".
|
|
434
|
+
// Original contents of *results are dropped.
|
|
435
|
+
// Returns OK if "dir" exists and "*result" contains its children.
|
|
436
|
+
// NotFound if "dir" does not exist, the calling process does not have
|
|
437
|
+
// permission to access "dir", or if "dir" is invalid.
|
|
438
|
+
// IOError if an IO Error was encountered
|
|
439
|
+
virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options,
|
|
440
|
+
std::vector<std::string>* result,
|
|
441
|
+
IODebugContext* dbg) = 0;
|
|
442
|
+
|
|
443
|
+
// Store in *result the attributes of the children of the specified directory.
|
|
444
|
+
// In case the implementation lists the directory prior to iterating the files
|
|
445
|
+
// and files are concurrently deleted, the deleted files will be omitted from
|
|
446
|
+
// result.
|
|
447
|
+
// The name attributes are relative to "dir".
|
|
448
|
+
// Original contents of *results are dropped.
|
|
449
|
+
// Returns OK if "dir" exists and "*result" contains its children.
|
|
450
|
+
// NotFound if "dir" does not exist, the calling process does not have
|
|
451
|
+
// permission to access "dir", or if "dir" is invalid.
|
|
452
|
+
// IOError if an IO Error was encountered
|
|
453
|
+
virtual IOStatus GetChildrenFileAttributes(
|
|
454
|
+
const std::string& dir, const IOOptions& options,
|
|
455
|
+
std::vector<FileAttributes>* result, IODebugContext* dbg) {
|
|
456
|
+
assert(result != nullptr);
|
|
457
|
+
std::vector<std::string> child_fnames;
|
|
458
|
+
IOStatus s = GetChildren(dir, options, &child_fnames, dbg);
|
|
459
|
+
if (!s.ok()) {
|
|
460
|
+
return s;
|
|
461
|
+
}
|
|
462
|
+
result->resize(child_fnames.size());
|
|
463
|
+
size_t result_size = 0;
|
|
464
|
+
for (size_t i = 0; i < child_fnames.size(); ++i) {
|
|
465
|
+
const std::string path = dir + "/" + child_fnames[i];
|
|
466
|
+
if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes,
|
|
467
|
+
dbg))
|
|
468
|
+
.ok()) {
|
|
469
|
+
if (FileExists(path, options, dbg).IsNotFound()) {
|
|
470
|
+
// The file may have been deleted since we listed the directory
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
return s;
|
|
474
|
+
}
|
|
475
|
+
(*result)[result_size].name = std::move(child_fnames[i]);
|
|
476
|
+
result_size++;
|
|
477
|
+
}
|
|
478
|
+
result->resize(result_size);
|
|
479
|
+
return IOStatus::OK();
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// This seems to clash with a macro on Windows, so #undef it here
|
|
483
|
+
#ifdef DeleteFile
|
|
484
|
+
#undef DeleteFile
|
|
485
|
+
#endif
|
|
486
|
+
// Delete the named file.
|
|
487
|
+
virtual IOStatus DeleteFile(const std::string& fname,
|
|
488
|
+
const IOOptions& options,
|
|
489
|
+
IODebugContext* dbg) = 0;
|
|
490
|
+
|
|
491
|
+
// Truncate the named file to the specified size.
|
|
492
|
+
virtual IOStatus Truncate(const std::string& /*fname*/, size_t /*size*/,
|
|
493
|
+
const IOOptions& /*options*/,
|
|
494
|
+
IODebugContext* /*dbg*/) {
|
|
495
|
+
return IOStatus::NotSupported(
|
|
496
|
+
"Truncate is not supported for this FileSystem");
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// Create the specified directory. Returns error if directory exists.
|
|
500
|
+
virtual IOStatus CreateDir(const std::string& dirname,
|
|
501
|
+
const IOOptions& options, IODebugContext* dbg) = 0;
|
|
502
|
+
|
|
503
|
+
// Creates directory if missing. Return Ok if it exists, or successful in
|
|
504
|
+
// Creating.
|
|
505
|
+
virtual IOStatus CreateDirIfMissing(const std::string& dirname,
|
|
506
|
+
const IOOptions& options,
|
|
507
|
+
IODebugContext* dbg) = 0;
|
|
508
|
+
|
|
509
|
+
// Delete the specified directory.
|
|
510
|
+
virtual IOStatus DeleteDir(const std::string& dirname,
|
|
511
|
+
const IOOptions& options, IODebugContext* dbg) = 0;
|
|
512
|
+
|
|
513
|
+
// Store the size of fname in *file_size.
|
|
514
|
+
virtual IOStatus GetFileSize(const std::string& fname,
|
|
515
|
+
const IOOptions& options, uint64_t* file_size,
|
|
516
|
+
IODebugContext* dbg) = 0;
|
|
517
|
+
|
|
518
|
+
// Store the last modification time of fname in *file_mtime.
|
|
519
|
+
virtual IOStatus GetFileModificationTime(const std::string& fname,
|
|
520
|
+
const IOOptions& options,
|
|
521
|
+
uint64_t* file_mtime,
|
|
522
|
+
IODebugContext* dbg) = 0;
|
|
523
|
+
// Rename file src to target.
|
|
524
|
+
virtual IOStatus RenameFile(const std::string& src, const std::string& target,
|
|
525
|
+
const IOOptions& options,
|
|
526
|
+
IODebugContext* dbg) = 0;
|
|
527
|
+
|
|
528
|
+
// Hard Link file src to target.
|
|
529
|
+
virtual IOStatus LinkFile(const std::string& /*src*/,
|
|
530
|
+
const std::string& /*target*/,
|
|
531
|
+
const IOOptions& /*options*/,
|
|
532
|
+
IODebugContext* /*dbg*/) {
|
|
533
|
+
return IOStatus::NotSupported(
|
|
534
|
+
"LinkFile is not supported for this FileSystem");
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
virtual IOStatus NumFileLinks(const std::string& /*fname*/,
|
|
538
|
+
const IOOptions& /*options*/,
|
|
539
|
+
uint64_t* /*count*/, IODebugContext* /*dbg*/) {
|
|
540
|
+
return IOStatus::NotSupported(
|
|
541
|
+
"Getting number of file links is not supported for this FileSystem");
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
virtual IOStatus AreFilesSame(const std::string& /*first*/,
|
|
545
|
+
const std::string& /*second*/,
|
|
546
|
+
const IOOptions& /*options*/, bool* /*res*/,
|
|
547
|
+
IODebugContext* /*dbg*/) {
|
|
548
|
+
return IOStatus::NotSupported(
|
|
549
|
+
"AreFilesSame is not supported for this FileSystem");
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// Lock the specified file. Used to prevent concurrent access to
|
|
553
|
+
// the same db by multiple processes. On failure, stores nullptr in
|
|
554
|
+
// *lock and returns non-OK.
|
|
555
|
+
//
|
|
556
|
+
// On success, stores a pointer to the object that represents the
|
|
557
|
+
// acquired lock in *lock and returns OK. The caller should call
|
|
558
|
+
// UnlockFile(*lock) to release the lock. If the process exits,
|
|
559
|
+
// the lock will be automatically released.
|
|
560
|
+
//
|
|
561
|
+
// If somebody else already holds the lock, finishes immediately
|
|
562
|
+
// with a failure. I.e., this call does not wait for existing locks
|
|
563
|
+
// to go away.
|
|
564
|
+
//
|
|
565
|
+
// May create the named file if it does not already exist.
|
|
566
|
+
virtual IOStatus LockFile(const std::string& fname, const IOOptions& options,
|
|
567
|
+
FileLock** lock, IODebugContext* dbg) = 0;
|
|
568
|
+
|
|
569
|
+
// Release the lock acquired by a previous successful call to LockFile.
|
|
570
|
+
// REQUIRES: lock was returned by a successful LockFile() call
|
|
571
|
+
// REQUIRES: lock has not already been unlocked.
|
|
572
|
+
virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options,
|
|
573
|
+
IODebugContext* dbg) = 0;
|
|
574
|
+
|
|
575
|
+
// *path is set to a temporary directory that can be used for testing. It may
|
|
576
|
+
// or many not have just been created. The directory may or may not differ
|
|
577
|
+
// between runs of the same process, but subsequent calls will return the
|
|
578
|
+
// same directory.
|
|
579
|
+
virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path,
|
|
580
|
+
IODebugContext* dbg) = 0;
|
|
581
|
+
|
|
582
|
+
// Create and returns a default logger (an instance of EnvLogger) for storing
|
|
583
|
+
// informational messages. Derived classes can override to provide custom
|
|
584
|
+
// logger.
|
|
585
|
+
virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts,
|
|
586
|
+
std::shared_ptr<Logger>* result,
|
|
587
|
+
IODebugContext* dbg);
|
|
588
|
+
|
|
589
|
+
// Get full directory name for this db.
|
|
590
|
+
virtual IOStatus GetAbsolutePath(const std::string& db_path,
|
|
591
|
+
const IOOptions& options,
|
|
592
|
+
std::string* output_path,
|
|
593
|
+
IODebugContext* dbg) = 0;
|
|
594
|
+
|
|
595
|
+
// Sanitize the FileOptions. Typically called by a FileOptions/EnvOptions
|
|
596
|
+
// copy constructor
|
|
597
|
+
virtual void SanitizeFileOptions(FileOptions* /*opts*/) const {}
|
|
598
|
+
|
|
599
|
+
// OptimizeForLogRead will create a new FileOptions object that is a copy of
|
|
600
|
+
// the FileOptions in the parameters, but is optimized for reading log files.
|
|
601
|
+
virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const;
|
|
602
|
+
|
|
603
|
+
// OptimizeForManifestRead will create a new FileOptions object that is a copy
|
|
604
|
+
// of the FileOptions in the parameters, but is optimized for reading manifest
|
|
605
|
+
// files.
|
|
606
|
+
virtual FileOptions OptimizeForManifestRead(
|
|
607
|
+
const FileOptions& file_options) const;
|
|
608
|
+
|
|
609
|
+
// OptimizeForLogWrite will create a new FileOptions object that is a copy of
|
|
610
|
+
// the FileOptions in the parameters, but is optimized for writing log files.
|
|
611
|
+
// Default implementation returns the copy of the same object.
|
|
612
|
+
virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options,
|
|
613
|
+
const DBOptions& db_options) const;
|
|
614
|
+
|
|
615
|
+
// OptimizeForManifestWrite will create a new FileOptions object that is a
|
|
616
|
+
// copy of the FileOptions in the parameters, but is optimized for writing
|
|
617
|
+
// manifest files. Default implementation returns the copy of the same
|
|
618
|
+
// object.
|
|
619
|
+
virtual FileOptions OptimizeForManifestWrite(
|
|
620
|
+
const FileOptions& file_options) const;
|
|
621
|
+
|
|
622
|
+
// OptimizeForCompactionTableWrite will create a new FileOptions object that
|
|
623
|
+
// is a copy of the FileOptions in the parameters, but is optimized for
|
|
624
|
+
// writing table files.
|
|
625
|
+
virtual FileOptions OptimizeForCompactionTableWrite(
|
|
626
|
+
const FileOptions& file_options,
|
|
627
|
+
const ImmutableDBOptions& immutable_ops) const;
|
|
628
|
+
|
|
629
|
+
// OptimizeForCompactionTableRead will create a new FileOptions object that
|
|
630
|
+
// is a copy of the FileOptions in the parameters, but is optimized for
|
|
631
|
+
// reading table files.
|
|
632
|
+
virtual FileOptions OptimizeForCompactionTableRead(
|
|
633
|
+
const FileOptions& file_options,
|
|
634
|
+
const ImmutableDBOptions& db_options) const;
|
|
635
|
+
|
|
636
|
+
// OptimizeForBlobFileRead will create a new FileOptions object that
|
|
637
|
+
// is a copy of the FileOptions in the parameters, but is optimized for
|
|
638
|
+
// reading blob files.
|
|
639
|
+
virtual FileOptions OptimizeForBlobFileRead(
|
|
640
|
+
const FileOptions& file_options,
|
|
641
|
+
const ImmutableDBOptions& db_options) const;
|
|
642
|
+
|
|
643
|
+
// This seems to clash with a macro on Windows, so #undef it here
|
|
644
|
+
#ifdef GetFreeSpace
|
|
645
|
+
#undef GetFreeSpace
|
|
646
|
+
#endif
|
|
647
|
+
|
|
648
|
+
// Get the amount of free disk space
|
|
649
|
+
virtual IOStatus GetFreeSpace(const std::string& /*path*/,
|
|
650
|
+
const IOOptions& /*options*/,
|
|
651
|
+
uint64_t* /*diskfree*/,
|
|
652
|
+
IODebugContext* /*dbg*/) {
|
|
653
|
+
return IOStatus::NotSupported("GetFreeSpace");
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
virtual IOStatus IsDirectory(const std::string& /*path*/,
|
|
657
|
+
const IOOptions& options, bool* is_dir,
|
|
658
|
+
IODebugContext* /*dgb*/) = 0;
|
|
659
|
+
|
|
660
|
+
// EXPERIMENTAL
|
|
661
|
+
// Poll for completion of read IO requests. The Poll() method should call the
|
|
662
|
+
// callback functions to indicate completion of read requests.
|
|
663
|
+
// Underlying FS is required to support Poll API. Poll implementation should
|
|
664
|
+
// ensure that the callback gets called at IO completion, and return only
|
|
665
|
+
// after the callback has been called.
|
|
666
|
+
// If Poll returns partial results for any reads, its caller reponsibility to
|
|
667
|
+
// call Read or ReadAsync in order to get the remaining bytes.
|
|
668
|
+
//
|
|
669
|
+
// Default implementation is to return IOStatus::OK.
|
|
670
|
+
|
|
671
|
+
virtual IOStatus Poll(std::vector<void*>& /*io_handles*/,
|
|
672
|
+
size_t /*min_completions*/) {
|
|
673
|
+
return IOStatus::OK();
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
// EXPERIMENTAL
|
|
677
|
+
// Abort the read IO requests submitted asynchronously. Underlying FS is
|
|
678
|
+
// required to support AbortIO API. AbortIO implementation should ensure that
|
|
679
|
+
// the all the read requests related to io_handles should be aborted and
|
|
680
|
+
// it shouldn't call the callback for these io_handles.
|
|
681
|
+
//
|
|
682
|
+
// Default implementation is to return IOStatus::OK.
|
|
683
|
+
virtual IOStatus AbortIO(std::vector<void*>& /*io_handles*/) {
|
|
684
|
+
return IOStatus::OK();
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
// Indicates to upper layers whether the FileSystem supports/uses async IO
|
|
688
|
+
// or not
|
|
689
|
+
virtual bool use_async_io() { return true; }
|
|
690
|
+
|
|
691
|
+
// If you're adding methods here, remember to add them to EnvWrapper too.
|
|
692
|
+
|
|
693
|
+
private:
|
|
694
|
+
void operator=(const FileSystem&);
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
// A file abstraction for reading sequentially through a file
|
|
698
|
+
class FSSequentialFile {
|
|
699
|
+
public:
|
|
700
|
+
FSSequentialFile() {}
|
|
701
|
+
|
|
702
|
+
virtual ~FSSequentialFile() {}
|
|
703
|
+
|
|
704
|
+
// Read up to "n" bytes from the file. "scratch[0..n-1]" may be
|
|
705
|
+
// written by this routine. Sets "*result" to the data that was
|
|
706
|
+
// read (including if fewer than "n" bytes were successfully read).
|
|
707
|
+
// May set "*result" to point at data in "scratch[0..n-1]", so
|
|
708
|
+
// "scratch[0..n-1]" must be live when "*result" is used.
|
|
709
|
+
// If an error was encountered, returns a non-OK status.
|
|
710
|
+
//
|
|
711
|
+
// After call, result->size() < n only if end of file has been
|
|
712
|
+
// reached (or non-OK status). Read might fail if called again after
|
|
713
|
+
// first result->size() < n.
|
|
714
|
+
//
|
|
715
|
+
// REQUIRES: External synchronization
|
|
716
|
+
virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result,
|
|
717
|
+
char* scratch, IODebugContext* dbg) = 0;
|
|
718
|
+
|
|
719
|
+
// Skip "n" bytes from the file. This is guaranteed to be no
|
|
720
|
+
// slower that reading the same data, but may be faster.
|
|
721
|
+
//
|
|
722
|
+
// If end of file is reached, skipping will stop at the end of the
|
|
723
|
+
// file, and Skip will return OK.
|
|
724
|
+
//
|
|
725
|
+
// REQUIRES: External synchronization
|
|
726
|
+
virtual IOStatus Skip(uint64_t n) = 0;
|
|
727
|
+
|
|
728
|
+
// Indicates the upper layers if the current SequentialFile implementation
|
|
729
|
+
// uses direct IO.
|
|
730
|
+
virtual bool use_direct_io() const { return false; }
|
|
731
|
+
|
|
732
|
+
// Use the returned alignment value to allocate
|
|
733
|
+
// aligned buffer for Direct I/O
|
|
734
|
+
virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; }
|
|
735
|
+
|
|
736
|
+
// Remove any kind of caching of data from the offset to offset+length
|
|
737
|
+
// of this file. If the length is 0, then it refers to the end of file.
|
|
738
|
+
// If the system is not caching the file contents, then this is a noop.
|
|
739
|
+
virtual IOStatus InvalidateCache(size_t /*offset*/, size_t /*length*/) {
|
|
740
|
+
return IOStatus::NotSupported("InvalidateCache not supported.");
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// Positioned Read for direct I/O
|
|
744
|
+
// If Direct I/O enabled, offset, n, and scratch should be properly aligned
|
|
745
|
+
virtual IOStatus PositionedRead(uint64_t /*offset*/, size_t /*n*/,
|
|
746
|
+
const IOOptions& /*options*/,
|
|
747
|
+
Slice* /*result*/, char* /*scratch*/,
|
|
748
|
+
IODebugContext* /*dbg*/) {
|
|
749
|
+
return IOStatus::NotSupported("PositionedRead");
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
// EXPERIMENTAL
|
|
753
|
+
// When available, returns the actual temperature for the file. This is
|
|
754
|
+
// useful in case some outside process moves a file from one tier to another,
|
|
755
|
+
// though the temperature is generally expected not to change while a file is
|
|
756
|
+
// open.
|
|
757
|
+
virtual Temperature GetTemperature() const { return Temperature::kUnknown; }
|
|
758
|
+
|
|
759
|
+
// If you're adding methods here, remember to add them to
|
|
760
|
+
// SequentialFileWrapper too.
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
// A read IO request structure for use in MultiRead and asynchronous Read APIs.
|
|
764
|
+
struct FSReadRequest {
|
|
765
|
+
// Input parameter that represents the file offset in bytes.
|
|
766
|
+
uint64_t offset;
|
|
767
|
+
|
|
768
|
+
// Input parameter that represents the length to read in bytes. `result` only
|
|
769
|
+
// returns fewer bytes if end of file is hit (or `status` is not OK).
|
|
770
|
+
size_t len;
|
|
771
|
+
|
|
772
|
+
// A buffer that MultiRead() can optionally place data in. It can
|
|
773
|
+
// ignore this and allocate its own buffer.
|
|
774
|
+
// The lifecycle of scratch will be until IO is completed.
|
|
775
|
+
//
|
|
776
|
+
// In case of asynchronous reads, its an output parameter and it will be
|
|
777
|
+
// maintained until callback has been called. Scratch is allocated by RocksDB
|
|
778
|
+
// and will be passed to underlying FileSystem.
|
|
779
|
+
char* scratch;
|
|
780
|
+
|
|
781
|
+
// Output parameter set by MultiRead() to point to the data buffer, and
|
|
782
|
+
// the number of valid bytes
|
|
783
|
+
//
|
|
784
|
+
// In case of asynchronous reads, this output parameter is set by Async Read
|
|
785
|
+
// APIs to point to the data buffer, and
|
|
786
|
+
// the number of valid bytes.
|
|
787
|
+
// Slice result should point to scratch i.e the data should
|
|
788
|
+
// always be read into scratch.
|
|
789
|
+
Slice result;
|
|
790
|
+
|
|
791
|
+
// Output parameter set by underlying FileSystem that represents status of
|
|
792
|
+
// read request.
|
|
793
|
+
IOStatus status;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
// A file abstraction for randomly reading the contents of a file.
|
|
797
|
+
class FSRandomAccessFile {
|
|
798
|
+
public:
|
|
799
|
+
FSRandomAccessFile() {}
|
|
800
|
+
|
|
801
|
+
virtual ~FSRandomAccessFile() {}
|
|
802
|
+
|
|
803
|
+
// Read up to "n" bytes from the file starting at "offset".
|
|
804
|
+
// "scratch[0..n-1]" may be written by this routine. Sets "*result"
|
|
805
|
+
// to the data that was read (including if fewer than "n" bytes were
|
|
806
|
+
// successfully read). May set "*result" to point at data in
|
|
807
|
+
// "scratch[0..n-1]", so "scratch[0..n-1]" must be live when
|
|
808
|
+
// "*result" is used. If an error was encountered, returns a non-OK
|
|
809
|
+
// status.
|
|
810
|
+
//
|
|
811
|
+
// After call, result->size() < n only if end of file has been
|
|
812
|
+
// reached (or non-OK status). Read might fail if called again after
|
|
813
|
+
// first result->size() < n.
|
|
814
|
+
//
|
|
815
|
+
// Safe for concurrent use by multiple threads.
|
|
816
|
+
// If Direct I/O enabled, offset, n, and scratch should be aligned properly.
|
|
817
|
+
virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options,
|
|
818
|
+
Slice* result, char* scratch,
|
|
819
|
+
IODebugContext* dbg) const = 0;
|
|
820
|
+
|
|
821
|
+
// Readahead the file starting from offset by n bytes for caching.
|
|
822
|
+
// If it's not implemented (default: `NotSupported`), RocksDB will create
|
|
823
|
+
// internal prefetch buffer to improve read performance.
|
|
824
|
+
virtual IOStatus Prefetch(uint64_t /*offset*/, size_t /*n*/,
|
|
825
|
+
const IOOptions& /*options*/,
|
|
826
|
+
IODebugContext* /*dbg*/) {
|
|
827
|
+
return IOStatus::NotSupported("Prefetch");
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
// Read a bunch of blocks as described by reqs. The blocks can
|
|
831
|
+
// optionally be read in parallel. This is a synchronous call, i.e it
|
|
832
|
+
// should return after all reads have completed. The reads will be
|
|
833
|
+
// non-overlapping but can be in any order. If the function return Status
|
|
834
|
+
// is not ok, status of individual requests will be ignored and return
|
|
835
|
+
// status will be assumed for all read requests. The function return status
|
|
836
|
+
// is only meant for errors that occur before processing individual read
|
|
837
|
+
// requests.
|
|
838
|
+
virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs,
|
|
839
|
+
const IOOptions& options, IODebugContext* dbg) {
|
|
840
|
+
assert(reqs != nullptr);
|
|
841
|
+
for (size_t i = 0; i < num_reqs; ++i) {
|
|
842
|
+
FSReadRequest& req = reqs[i];
|
|
843
|
+
req.status =
|
|
844
|
+
Read(req.offset, req.len, options, &req.result, req.scratch, dbg);
|
|
845
|
+
}
|
|
846
|
+
return IOStatus::OK();
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
// Tries to get an unique ID for this file that will be the same each time
|
|
850
|
+
// the file is opened (and will stay the same while the file is open).
|
|
851
|
+
// Furthermore, it tries to make this ID at most "max_size" bytes. If such an
|
|
852
|
+
// ID can be created this function returns the length of the ID and places it
|
|
853
|
+
// in "id"; otherwise, this function returns 0, in which case "id"
|
|
854
|
+
// may not have been modified.
|
|
855
|
+
//
|
|
856
|
+
// This function guarantees, for IDs from a given environment, two unique ids
|
|
857
|
+
// cannot be made equal to each other by adding arbitrary bytes to one of
|
|
858
|
+
// them. That is, no unique ID is the prefix of another.
|
|
859
|
+
//
|
|
860
|
+
// This function guarantees that the returned ID will not be interpretable as
|
|
861
|
+
// a single varint.
|
|
862
|
+
//
|
|
863
|
+
// Note: these IDs are only valid for the duration of the process.
|
|
864
|
+
virtual size_t GetUniqueId(char* /*id*/, size_t /*max_size*/) const {
|
|
865
|
+
return 0; // Default implementation to prevent issues with backwards
|
|
866
|
+
// compatibility.
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed };
|
|
870
|
+
|
|
871
|
+
virtual void Hint(AccessPattern /*pattern*/) {}
|
|
872
|
+
|
|
873
|
+
// Indicates the upper layers if the current RandomAccessFile implementation
|
|
874
|
+
// uses direct IO.
|
|
875
|
+
virtual bool use_direct_io() const { return false; }
|
|
876
|
+
|
|
877
|
+
// Use the returned alignment value to allocate
|
|
878
|
+
// aligned buffer for Direct I/O
|
|
879
|
+
virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; }
|
|
880
|
+
|
|
881
|
+
// Remove any kind of caching of data from the offset to offset+length
|
|
882
|
+
// of this file. If the length is 0, then it refers to the end of file.
|
|
883
|
+
// If the system is not caching the file contents, then this is a noop.
|
|
884
|
+
virtual IOStatus InvalidateCache(size_t /*offset*/, size_t /*length*/) {
|
|
885
|
+
return IOStatus::NotSupported("InvalidateCache not supported.");
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
// EXPERIMENTAL
|
|
889
|
+
// This API reads the requested data in FSReadRequest asynchronously. This is
|
|
890
|
+
// a asynchronous call, i.e it should return after submitting the request.
|
|
891
|
+
//
|
|
892
|
+
// When the read request is completed, callback function specified in cb
|
|
893
|
+
// should be called with arguments cb_arg and the result populated in
|
|
894
|
+
// FSReadRequest with result and status fileds updated by FileSystem.
|
|
895
|
+
// cb_arg should be used by the callback to track the original request
|
|
896
|
+
// submitted.
|
|
897
|
+
//
|
|
898
|
+
// This API should also populate io_handle which should be used by
|
|
899
|
+
// underlying FileSystem to store the context in order to distinguish the read
|
|
900
|
+
// requests at their side and provide the custom deletion function in del_fn.
|
|
901
|
+
// RocksDB guarantees that the del_fn for io_handle will be called after
|
|
902
|
+
// receiving the callback. Furthermore, RocksDB guarantees that if it calls
|
|
903
|
+
// the Poll API for this io_handle, del_fn will be called after the Poll
|
|
904
|
+
// returns. RocksDB is responsible for managing the lifetime of io_handle.
|
|
905
|
+
//
|
|
906
|
+
// req contains the request offset and size passed as input parameter of read
|
|
907
|
+
// request and result and status fields are output parameter set by underlying
|
|
908
|
+
// FileSystem. The data should always be read into scratch field.
|
|
909
|
+
//
|
|
910
|
+
// Default implementation is to read the data synchronously.
|
|
911
|
+
virtual IOStatus ReadAsync(
|
|
912
|
+
FSReadRequest& req, const IOOptions& opts,
|
|
913
|
+
std::function<void(const FSReadRequest&, void*)> cb, void* cb_arg,
|
|
914
|
+
void** /*io_handle*/, IOHandleDeleter* /*del_fn*/, IODebugContext* dbg) {
|
|
915
|
+
req.status =
|
|
916
|
+
Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg);
|
|
917
|
+
cb(req, cb_arg);
|
|
918
|
+
return IOStatus::OK();
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
// EXPERIMENTAL
|
|
922
|
+
// When available, returns the actual temperature for the file. This is
|
|
923
|
+
// useful in case some outside process moves a file from one tier to another,
|
|
924
|
+
// though the temperature is generally expected not to change while a file is
|
|
925
|
+
// open.
|
|
926
|
+
virtual Temperature GetTemperature() const { return Temperature::kUnknown; }
|
|
927
|
+
|
|
928
|
+
// If you're adding methods here, remember to add them to
|
|
929
|
+
// RandomAccessFileWrapper too.
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
// A data structure brings the data verification information, which is
|
|
933
|
+
// used together with data being written to a file.
|
|
934
|
+
struct DataVerificationInfo {
|
|
935
|
+
// checksum of the data being written.
|
|
936
|
+
Slice checksum;
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
// A file abstraction for sequential writing. The implementation
|
|
940
|
+
// must provide buffering since callers may append small fragments
|
|
941
|
+
// at a time to the file.
|
|
942
|
+
class FSWritableFile {
|
|
943
|
+
public:
|
|
944
|
+
FSWritableFile()
|
|
945
|
+
: last_preallocated_block_(0),
|
|
946
|
+
preallocation_block_size_(0),
|
|
947
|
+
io_priority_(Env::IO_TOTAL),
|
|
948
|
+
write_hint_(Env::WLTH_NOT_SET),
|
|
949
|
+
strict_bytes_per_sync_(false) {}
|
|
950
|
+
|
|
951
|
+
explicit FSWritableFile(const FileOptions& options)
|
|
952
|
+
: last_preallocated_block_(0),
|
|
953
|
+
preallocation_block_size_(0),
|
|
954
|
+
io_priority_(Env::IO_TOTAL),
|
|
955
|
+
write_hint_(Env::WLTH_NOT_SET),
|
|
956
|
+
strict_bytes_per_sync_(options.strict_bytes_per_sync) {}
|
|
957
|
+
|
|
958
|
+
virtual ~FSWritableFile() {}
|
|
959
|
+
|
|
960
|
+
// Append data to the end of the file
|
|
961
|
+
// Note: A WritableFile object must support either Append or
|
|
962
|
+
// PositionedAppend, so the users cannot mix the two.
|
|
963
|
+
virtual IOStatus Append(const Slice& data, const IOOptions& options,
|
|
964
|
+
IODebugContext* dbg) = 0;
|
|
965
|
+
|
|
966
|
+
// Append data with verification information.
|
|
967
|
+
// Note that this API change is experimental and it might be changed in
|
|
968
|
+
// the future. Currently, RocksDB only generates crc32c based checksum for
|
|
969
|
+
// the file writes when the checksum handoff option is set.
|
|
970
|
+
// Expected behavior: if the handoff_checksum_type in FileOptions (currently,
|
|
971
|
+
// ChecksumType::kCRC32C is set as default) is not supported by this
|
|
972
|
+
// FSWritableFile, the information in DataVerificationInfo can be ignored
|
|
973
|
+
// (i.e. does not perform checksum verification).
|
|
974
|
+
virtual IOStatus Append(const Slice& data, const IOOptions& options,
|
|
975
|
+
const DataVerificationInfo& /* verification_info */,
|
|
976
|
+
IODebugContext* dbg) {
|
|
977
|
+
return Append(data, options, dbg);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
// PositionedAppend data to the specified offset. The new EOF after append
|
|
981
|
+
// must be larger than the previous EOF. This is to be used when writes are
|
|
982
|
+
// not backed by OS buffers and hence has to always start from the start of
|
|
983
|
+
// the sector. The implementation thus needs to also rewrite the last
|
|
984
|
+
// partial sector.
|
|
985
|
+
// Note: PositionAppend does not guarantee moving the file offset after the
|
|
986
|
+
// write. A WritableFile object must support either Append or
|
|
987
|
+
// PositionedAppend, so the users cannot mix the two.
|
|
988
|
+
//
|
|
989
|
+
// PositionedAppend() can only happen on the page/sector boundaries. For that
|
|
990
|
+
// reason, if the last write was an incomplete sector we still need to rewind
|
|
991
|
+
// back to the nearest sector/page and rewrite the portion of it with whatever
|
|
992
|
+
// we need to add. We need to keep where we stop writing.
|
|
993
|
+
//
|
|
994
|
+
// PositionedAppend() can only write whole sectors. For that reason we have to
|
|
995
|
+
// pad with zeros for the last write and trim the file when closing according
|
|
996
|
+
// to the position we keep in the previous step.
|
|
997
|
+
//
|
|
998
|
+
// PositionedAppend() requires aligned buffer to be passed in. The alignment
|
|
999
|
+
// required is queried via GetRequiredBufferAlignment()
|
|
1000
|
+
virtual IOStatus PositionedAppend(const Slice& /* data */,
|
|
1001
|
+
uint64_t /* offset */,
|
|
1002
|
+
const IOOptions& /*options*/,
|
|
1003
|
+
IODebugContext* /*dbg*/) {
|
|
1004
|
+
return IOStatus::NotSupported("PositionedAppend");
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// PositionedAppend data with verification information.
|
|
1008
|
+
// Note that this API change is experimental and it might be changed in
|
|
1009
|
+
// the future. Currently, RocksDB only generates crc32c based checksum for
|
|
1010
|
+
// the file writes when the checksum handoff option is set.
|
|
1011
|
+
// Expected behavior: if the handoff_checksum_type in FileOptions (currently,
|
|
1012
|
+
// ChecksumType::kCRC32C is set as default) is not supported by this
|
|
1013
|
+
// FSWritableFile, the information in DataVerificationInfo can be ignored
|
|
1014
|
+
// (i.e. does not perform checksum verification).
|
|
1015
|
+
virtual IOStatus PositionedAppend(
|
|
1016
|
+
const Slice& /* data */, uint64_t /* offset */,
|
|
1017
|
+
const IOOptions& /*options*/,
|
|
1018
|
+
const DataVerificationInfo& /* verification_info */,
|
|
1019
|
+
IODebugContext* /*dbg*/) {
|
|
1020
|
+
return IOStatus::NotSupported("PositionedAppend");
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
// Truncate is necessary to trim the file to the correct size
|
|
1024
|
+
// before closing. It is not always possible to keep track of the file
|
|
1025
|
+
// size due to whole pages writes. The behavior is undefined if called
|
|
1026
|
+
// with other writes to follow.
|
|
1027
|
+
virtual IOStatus Truncate(uint64_t /*size*/, const IOOptions& /*options*/,
|
|
1028
|
+
IODebugContext* /*dbg*/) {
|
|
1029
|
+
return IOStatus::OK();
|
|
1030
|
+
}
|
|
1031
|
+
virtual IOStatus Close(const IOOptions& /*options*/,
|
|
1032
|
+
IODebugContext* /*dbg*/) = 0;
|
|
1033
|
+
|
|
1034
|
+
virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0;
|
|
1035
|
+
virtual IOStatus Sync(const IOOptions& options,
|
|
1036
|
+
IODebugContext* dbg) = 0; // sync data
|
|
1037
|
+
|
|
1038
|
+
/*
|
|
1039
|
+
* Sync data and/or metadata as well.
|
|
1040
|
+
* By default, sync only data.
|
|
1041
|
+
* Override this method for environments where we need to sync
|
|
1042
|
+
* metadata as well.
|
|
1043
|
+
*/
|
|
1044
|
+
virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) {
|
|
1045
|
+
return Sync(options, dbg);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// true if Sync() and Fsync() are safe to call concurrently with Append()
|
|
1049
|
+
// and Flush().
|
|
1050
|
+
virtual bool IsSyncThreadSafe() const { return false; }
|
|
1051
|
+
|
|
1052
|
+
// Indicates the upper layers if the current WritableFile implementation
|
|
1053
|
+
// uses direct IO.
|
|
1054
|
+
virtual bool use_direct_io() const { return false; }
|
|
1055
|
+
|
|
1056
|
+
// Use the returned alignment value to allocate
|
|
1057
|
+
// aligned buffer for Direct I/O
|
|
1058
|
+
virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; }
|
|
1059
|
+
|
|
1060
|
+
virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) {
|
|
1061
|
+
write_hint_ = hint;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/*
|
|
1065
|
+
* If rate limiting is enabled, change the file-granularity priority used in
|
|
1066
|
+
* rate-limiting writes.
|
|
1067
|
+
*
|
|
1068
|
+
* In the presence of finer-granularity priority such as
|
|
1069
|
+
* `WriteOptions::rate_limiter_priority`, this file-granularity priority may
|
|
1070
|
+
* be overridden by a non-Env::IO_TOTAL finer-granularity priority and used as
|
|
1071
|
+
* a fallback for Env::IO_TOTAL finer-granularity priority.
|
|
1072
|
+
*
|
|
1073
|
+
* If rate limiting is not enabled, this call has no effect.
|
|
1074
|
+
*/
|
|
1075
|
+
virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; }
|
|
1076
|
+
|
|
1077
|
+
virtual Env::IOPriority GetIOPriority() { return io_priority_; }
|
|
1078
|
+
|
|
1079
|
+
virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; }
|
|
1080
|
+
/*
|
|
1081
|
+
* Get the size of valid data in the file.
|
|
1082
|
+
*/
|
|
1083
|
+
virtual uint64_t GetFileSize(const IOOptions& /*options*/,
|
|
1084
|
+
IODebugContext* /*dbg*/) {
|
|
1085
|
+
return 0;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/*
|
|
1089
|
+
* Get and set the default pre-allocation block size for writes to
|
|
1090
|
+
* this file. If non-zero, then Allocate will be used to extend the
|
|
1091
|
+
* underlying storage of a file (generally via fallocate) if the Env
|
|
1092
|
+
* instance supports it.
|
|
1093
|
+
*/
|
|
1094
|
+
virtual void SetPreallocationBlockSize(size_t size) {
|
|
1095
|
+
preallocation_block_size_ = size;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
virtual void GetPreallocationStatus(size_t* block_size,
|
|
1099
|
+
size_t* last_allocated_block) {
|
|
1100
|
+
*last_allocated_block = last_preallocated_block_;
|
|
1101
|
+
*block_size = preallocation_block_size_;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
// For documentation, refer to RandomAccessFile::GetUniqueId()
|
|
1105
|
+
virtual size_t GetUniqueId(char* /*id*/, size_t /*max_size*/) const {
|
|
1106
|
+
return 0; // Default implementation to prevent issues with backwards
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
// Remove any kind of caching of data from the offset to offset+length
|
|
1110
|
+
// of this file. If the length is 0, then it refers to the end of file.
|
|
1111
|
+
// If the system is not caching the file contents, then this is a noop.
|
|
1112
|
+
// This call has no effect on dirty pages in the cache.
|
|
1113
|
+
virtual IOStatus InvalidateCache(size_t /*offset*/, size_t /*length*/) {
|
|
1114
|
+
return IOStatus::NotSupported("InvalidateCache not supported.");
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// Sync a file range with disk.
|
|
1118
|
+
// offset is the starting byte of the file range to be synchronized.
|
|
1119
|
+
// nbytes specifies the length of the range to be synchronized.
|
|
1120
|
+
// This asks the OS to initiate flushing the cached data to disk,
|
|
1121
|
+
// without waiting for completion.
|
|
1122
|
+
// Default implementation does nothing.
|
|
1123
|
+
virtual IOStatus RangeSync(uint64_t /*offset*/, uint64_t /*nbytes*/,
|
|
1124
|
+
const IOOptions& options, IODebugContext* dbg) {
|
|
1125
|
+
if (strict_bytes_per_sync_) {
|
|
1126
|
+
return Sync(options, dbg);
|
|
1127
|
+
}
|
|
1128
|
+
return IOStatus::OK();
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
// PrepareWrite performs any necessary preparation for a write
|
|
1132
|
+
// before the write actually occurs. This allows for pre-allocation
|
|
1133
|
+
// of space on devices where it can result in less file
|
|
1134
|
+
// fragmentation and/or less waste from over-zealous filesystem
|
|
1135
|
+
// pre-allocation.
|
|
1136
|
+
virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options,
|
|
1137
|
+
IODebugContext* dbg) {
|
|
1138
|
+
if (preallocation_block_size_ == 0) {
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
// If this write would cross one or more preallocation blocks,
|
|
1142
|
+
// determine what the last preallocation block necessary to
|
|
1143
|
+
// cover this write would be and Allocate to that point.
|
|
1144
|
+
const auto block_size = preallocation_block_size_;
|
|
1145
|
+
size_t new_last_preallocated_block =
|
|
1146
|
+
(offset + len + block_size - 1) / block_size;
|
|
1147
|
+
if (new_last_preallocated_block > last_preallocated_block_) {
|
|
1148
|
+
size_t num_spanned_blocks =
|
|
1149
|
+
new_last_preallocated_block - last_preallocated_block_;
|
|
1150
|
+
Allocate(block_size * last_preallocated_block_,
|
|
1151
|
+
block_size * num_spanned_blocks, options, dbg)
|
|
1152
|
+
.PermitUncheckedError();
|
|
1153
|
+
last_preallocated_block_ = new_last_preallocated_block;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
// Pre-allocates space for a file.
|
|
1158
|
+
virtual IOStatus Allocate(uint64_t /*offset*/, uint64_t /*len*/,
|
|
1159
|
+
const IOOptions& /*options*/,
|
|
1160
|
+
IODebugContext* /*dbg*/) {
|
|
1161
|
+
return IOStatus::OK();
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
// If you're adding methods here, remember to add them to
|
|
1165
|
+
// WritableFileWrapper too.
|
|
1166
|
+
|
|
1167
|
+
protected:
|
|
1168
|
+
size_t preallocation_block_size() { return preallocation_block_size_; }
|
|
1169
|
+
|
|
1170
|
+
private:
|
|
1171
|
+
size_t last_preallocated_block_;
|
|
1172
|
+
size_t preallocation_block_size_;
|
|
1173
|
+
// No copying allowed
|
|
1174
|
+
FSWritableFile(const FSWritableFile&);
|
|
1175
|
+
void operator=(const FSWritableFile&);
|
|
1176
|
+
|
|
1177
|
+
protected:
|
|
1178
|
+
Env::IOPriority io_priority_;
|
|
1179
|
+
Env::WriteLifeTimeHint write_hint_;
|
|
1180
|
+
const bool strict_bytes_per_sync_;
|
|
1181
|
+
};
|
|
1182
|
+
|
|
1183
|
+
// A file abstraction for random reading and writing.
|
|
1184
|
+
class FSRandomRWFile {
|
|
1185
|
+
public:
|
|
1186
|
+
FSRandomRWFile() {}
|
|
1187
|
+
|
|
1188
|
+
virtual ~FSRandomRWFile() {}
|
|
1189
|
+
|
|
1190
|
+
// Indicates if the class makes use of direct I/O
|
|
1191
|
+
// If false you must pass aligned buffer to Write()
|
|
1192
|
+
virtual bool use_direct_io() const { return false; }
|
|
1193
|
+
|
|
1194
|
+
// Use the returned alignment value to allocate
|
|
1195
|
+
// aligned buffer for Direct I/O
|
|
1196
|
+
virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; }
|
|
1197
|
+
|
|
1198
|
+
// Write bytes in `data` at offset `offset`, Returns Status::OK() on success.
|
|
1199
|
+
// Pass aligned buffer when use_direct_io() returns true.
|
|
1200
|
+
virtual IOStatus Write(uint64_t offset, const Slice& data,
|
|
1201
|
+
const IOOptions& options, IODebugContext* dbg) = 0;
|
|
1202
|
+
|
|
1203
|
+
// Read up to `n` bytes starting from offset `offset` and store them in
|
|
1204
|
+
// result, provided `scratch` size should be at least `n`.
|
|
1205
|
+
//
|
|
1206
|
+
// After call, result->size() < n only if end of file has been
|
|
1207
|
+
// reached (or non-OK status). Read might fail if called again after
|
|
1208
|
+
// first result->size() < n.
|
|
1209
|
+
//
|
|
1210
|
+
// Returns Status::OK() on success.
|
|
1211
|
+
virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options,
|
|
1212
|
+
Slice* result, char* scratch,
|
|
1213
|
+
IODebugContext* dbg) const = 0;
|
|
1214
|
+
|
|
1215
|
+
virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0;
|
|
1216
|
+
|
|
1217
|
+
virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0;
|
|
1218
|
+
|
|
1219
|
+
virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) {
|
|
1220
|
+
return Sync(options, dbg);
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0;
|
|
1224
|
+
|
|
1225
|
+
// EXPERIMENTAL
|
|
1226
|
+
// When available, returns the actual temperature for the file. This is
|
|
1227
|
+
// useful in case some outside process moves a file from one tier to another,
|
|
1228
|
+
// though the temperature is generally expected not to change while a file is
|
|
1229
|
+
// open.
|
|
1230
|
+
virtual Temperature GetTemperature() const { return Temperature::kUnknown; }
|
|
1231
|
+
|
|
1232
|
+
// If you're adding methods here, remember to add them to
|
|
1233
|
+
// RandomRWFileWrapper too.
|
|
1234
|
+
|
|
1235
|
+
// No copying allowed
|
|
1236
|
+
FSRandomRWFile(const RandomRWFile&) = delete;
|
|
1237
|
+
FSRandomRWFile& operator=(const RandomRWFile&) = delete;
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
// MemoryMappedFileBuffer object represents a memory-mapped file's raw buffer.
|
|
1241
|
+
// Subclasses should release the mapping upon destruction.
|
|
1242
|
+
class FSMemoryMappedFileBuffer {
|
|
1243
|
+
public:
|
|
1244
|
+
FSMemoryMappedFileBuffer(void* _base, size_t _length)
|
|
1245
|
+
: base_(_base), length_(_length) {}
|
|
1246
|
+
|
|
1247
|
+
virtual ~FSMemoryMappedFileBuffer() = 0;
|
|
1248
|
+
|
|
1249
|
+
// We do not want to unmap this twice. We can make this class
|
|
1250
|
+
// movable if desired, however, since
|
|
1251
|
+
FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete;
|
|
1252
|
+
FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete;
|
|
1253
|
+
|
|
1254
|
+
void* GetBase() const { return base_; }
|
|
1255
|
+
size_t GetLen() const { return length_; }
|
|
1256
|
+
|
|
1257
|
+
protected:
|
|
1258
|
+
void* base_;
|
|
1259
|
+
const size_t length_;
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
// Directory object represents collection of files and implements
|
|
1263
|
+
// filesystem operations that can be executed on directories.
|
|
1264
|
+
class FSDirectory {
|
|
1265
|
+
public:
|
|
1266
|
+
virtual ~FSDirectory() {}
|
|
1267
|
+
// Fsync directory. Can be called concurrently from multiple threads.
|
|
1268
|
+
virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0;
|
|
1269
|
+
|
|
1270
|
+
// FsyncWithDirOptions after renaming a file. Depends on the filesystem, it
|
|
1271
|
+
// may fsync directory or just the renaming file (e.g. btrfs). By default, it
|
|
1272
|
+
// just calls directory fsync.
|
|
1273
|
+
virtual IOStatus FsyncWithDirOptions(
|
|
1274
|
+
const IOOptions& options, IODebugContext* dbg,
|
|
1275
|
+
const DirFsyncOptions& /*dir_fsync_options*/) {
|
|
1276
|
+
return Fsync(options, dbg);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
// Close directory
|
|
1280
|
+
virtual IOStatus Close(const IOOptions& /*options*/,
|
|
1281
|
+
IODebugContext* /*dbg*/) {
|
|
1282
|
+
return IOStatus::NotSupported("Close");
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
virtual size_t GetUniqueId(char* /*id*/, size_t /*max_size*/) const {
|
|
1286
|
+
return 0;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
// If you're adding methods here, remember to add them to
|
|
1290
|
+
// DirectoryWrapper too.
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
// Below are helpers for wrapping most of the classes in this file.
|
|
1294
|
+
// They forward all calls to another instance of the class.
|
|
1295
|
+
// Useful when wrapping the default implementations.
|
|
1296
|
+
// Typical usage is to inherit your wrapper from *Wrapper, e.g.:
|
|
1297
|
+
//
|
|
1298
|
+
// class MySequentialFileWrapper : public
|
|
1299
|
+
// ROCKSDB_NAMESPACE::FSSequentialFileWrapper {
|
|
1300
|
+
// public:
|
|
1301
|
+
// MySequentialFileWrapper(ROCKSDB_NAMESPACE::FSSequentialFile* target):
|
|
1302
|
+
// ROCKSDB_NAMESPACE::FSSequentialFileWrapper(target) {}
|
|
1303
|
+
// Status Read(size_t n, FileSystem::IOOptions& options, Slice* result,
|
|
1304
|
+
// char* scratch, FileSystem::IODebugContext* dbg) override {
|
|
1305
|
+
// cout << "Doing a read of size " << n << "!" << endl;
|
|
1306
|
+
// return ROCKSDB_NAMESPACE::FSSequentialFileWrapper::Read(n, options,
|
|
1307
|
+
// result,
|
|
1308
|
+
// scratch, dbg);
|
|
1309
|
+
// }
|
|
1310
|
+
// // All other methods are forwarded to target_ automatically.
|
|
1311
|
+
// };
|
|
1312
|
+
//
|
|
1313
|
+
// This is often more convenient than inheriting the class directly because
|
|
1314
|
+
// (a) Don't have to override and forward all methods - the Wrapper will
|
|
1315
|
+
// forward everything you're not explicitly overriding.
|
|
1316
|
+
// (b) Don't need to update the wrapper when more methods are added to the
|
|
1317
|
+
// rocksdb class. Unless you actually want to override the behavior.
|
|
1318
|
+
// (And unless rocksdb people forgot to update the *Wrapper class.)
|
|
1319
|
+
|
|
1320
|
+
// An implementation of Env that forwards all calls to another Env.
|
|
1321
|
+
// May be useful to clients who wish to override just part of the
|
|
1322
|
+
// functionality of another Env.
|
|
1323
|
+
class FileSystemWrapper : public FileSystem {
|
|
1324
|
+
public:
|
|
1325
|
+
// Initialize an EnvWrapper that delegates all calls to *t
|
|
1326
|
+
explicit FileSystemWrapper(const std::shared_ptr<FileSystem>& t);
|
|
1327
|
+
~FileSystemWrapper() override {}
|
|
1328
|
+
|
|
1329
|
+
// Return the target to which this Env forwards all calls
|
|
1330
|
+
FileSystem* target() const { return target_.get(); }
|
|
1331
|
+
|
|
1332
|
+
// The following text is boilerplate that forwards all methods to target()
|
|
1333
|
+
IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts,
|
|
1334
|
+
std::unique_ptr<FSSequentialFile>* r,
|
|
1335
|
+
IODebugContext* dbg) override {
|
|
1336
|
+
return target_->NewSequentialFile(f, file_opts, r, dbg);
|
|
1337
|
+
}
|
|
1338
|
+
IOStatus NewRandomAccessFile(const std::string& f,
|
|
1339
|
+
const FileOptions& file_opts,
|
|
1340
|
+
std::unique_ptr<FSRandomAccessFile>* r,
|
|
1341
|
+
IODebugContext* dbg) override {
|
|
1342
|
+
return target_->NewRandomAccessFile(f, file_opts, r, dbg);
|
|
1343
|
+
}
|
|
1344
|
+
IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts,
|
|
1345
|
+
std::unique_ptr<FSWritableFile>* r,
|
|
1346
|
+
IODebugContext* dbg) override {
|
|
1347
|
+
return target_->NewWritableFile(f, file_opts, r, dbg);
|
|
1348
|
+
}
|
|
1349
|
+
IOStatus ReopenWritableFile(const std::string& fname,
|
|
1350
|
+
const FileOptions& file_opts,
|
|
1351
|
+
std::unique_ptr<FSWritableFile>* result,
|
|
1352
|
+
IODebugContext* dbg) override {
|
|
1353
|
+
return target_->ReopenWritableFile(fname, file_opts, result, dbg);
|
|
1354
|
+
}
|
|
1355
|
+
IOStatus ReuseWritableFile(const std::string& fname,
|
|
1356
|
+
const std::string& old_fname,
|
|
1357
|
+
const FileOptions& file_opts,
|
|
1358
|
+
std::unique_ptr<FSWritableFile>* r,
|
|
1359
|
+
IODebugContext* dbg) override {
|
|
1360
|
+
return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg);
|
|
1361
|
+
}
|
|
1362
|
+
IOStatus NewRandomRWFile(const std::string& fname,
|
|
1363
|
+
const FileOptions& file_opts,
|
|
1364
|
+
std::unique_ptr<FSRandomRWFile>* result,
|
|
1365
|
+
IODebugContext* dbg) override {
|
|
1366
|
+
return target_->NewRandomRWFile(fname, file_opts, result, dbg);
|
|
1367
|
+
}
|
|
1368
|
+
IOStatus NewMemoryMappedFileBuffer(
|
|
1369
|
+
const std::string& fname,
|
|
1370
|
+
std::unique_ptr<MemoryMappedFileBuffer>* result) override {
|
|
1371
|
+
return target_->NewMemoryMappedFileBuffer(fname, result);
|
|
1372
|
+
}
|
|
1373
|
+
IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts,
|
|
1374
|
+
std::unique_ptr<FSDirectory>* result,
|
|
1375
|
+
IODebugContext* dbg) override {
|
|
1376
|
+
return target_->NewDirectory(name, io_opts, result, dbg);
|
|
1377
|
+
}
|
|
1378
|
+
IOStatus FileExists(const std::string& f, const IOOptions& io_opts,
|
|
1379
|
+
IODebugContext* dbg) override {
|
|
1380
|
+
return target_->FileExists(f, io_opts, dbg);
|
|
1381
|
+
}
|
|
1382
|
+
IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts,
|
|
1383
|
+
std::vector<std::string>* r,
|
|
1384
|
+
IODebugContext* dbg) override {
|
|
1385
|
+
return target_->GetChildren(dir, io_opts, r, dbg);
|
|
1386
|
+
}
|
|
1387
|
+
IOStatus GetChildrenFileAttributes(const std::string& dir,
|
|
1388
|
+
const IOOptions& options,
|
|
1389
|
+
std::vector<FileAttributes>* result,
|
|
1390
|
+
IODebugContext* dbg) override {
|
|
1391
|
+
return target_->GetChildrenFileAttributes(dir, options, result, dbg);
|
|
1392
|
+
}
|
|
1393
|
+
IOStatus DeleteFile(const std::string& f, const IOOptions& options,
|
|
1394
|
+
IODebugContext* dbg) override {
|
|
1395
|
+
return target_->DeleteFile(f, options, dbg);
|
|
1396
|
+
}
|
|
1397
|
+
IOStatus Truncate(const std::string& fname, size_t size,
|
|
1398
|
+
const IOOptions& options, IODebugContext* dbg) override {
|
|
1399
|
+
return target_->Truncate(fname, size, options, dbg);
|
|
1400
|
+
}
|
|
1401
|
+
IOStatus CreateDir(const std::string& d, const IOOptions& options,
|
|
1402
|
+
IODebugContext* dbg) override {
|
|
1403
|
+
return target_->CreateDir(d, options, dbg);
|
|
1404
|
+
}
|
|
1405
|
+
IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options,
|
|
1406
|
+
IODebugContext* dbg) override {
|
|
1407
|
+
return target_->CreateDirIfMissing(d, options, dbg);
|
|
1408
|
+
}
|
|
1409
|
+
IOStatus DeleteDir(const std::string& d, const IOOptions& options,
|
|
1410
|
+
IODebugContext* dbg) override {
|
|
1411
|
+
return target_->DeleteDir(d, options, dbg);
|
|
1412
|
+
}
|
|
1413
|
+
IOStatus GetFileSize(const std::string& f, const IOOptions& options,
|
|
1414
|
+
uint64_t* s, IODebugContext* dbg) override {
|
|
1415
|
+
return target_->GetFileSize(f, options, s, dbg);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
IOStatus GetFileModificationTime(const std::string& fname,
|
|
1419
|
+
const IOOptions& options,
|
|
1420
|
+
uint64_t* file_mtime,
|
|
1421
|
+
IODebugContext* dbg) override {
|
|
1422
|
+
return target_->GetFileModificationTime(fname, options, file_mtime, dbg);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options,
|
|
1426
|
+
std::string* output_path,
|
|
1427
|
+
IODebugContext* dbg) override {
|
|
1428
|
+
return target_->GetAbsolutePath(db_path, options, output_path, dbg);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
IOStatus RenameFile(const std::string& s, const std::string& t,
|
|
1432
|
+
const IOOptions& options, IODebugContext* dbg) override {
|
|
1433
|
+
return target_->RenameFile(s, t, options, dbg);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
IOStatus LinkFile(const std::string& s, const std::string& t,
|
|
1437
|
+
const IOOptions& options, IODebugContext* dbg) override {
|
|
1438
|
+
return target_->LinkFile(s, t, options, dbg);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
IOStatus NumFileLinks(const std::string& fname, const IOOptions& options,
|
|
1442
|
+
uint64_t* count, IODebugContext* dbg) override {
|
|
1443
|
+
return target_->NumFileLinks(fname, options, count, dbg);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
IOStatus AreFilesSame(const std::string& first, const std::string& second,
|
|
1447
|
+
const IOOptions& options, bool* res,
|
|
1448
|
+
IODebugContext* dbg) override {
|
|
1449
|
+
return target_->AreFilesSame(first, second, options, res, dbg);
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
IOStatus LockFile(const std::string& f, const IOOptions& options,
|
|
1453
|
+
FileLock** l, IODebugContext* dbg) override {
|
|
1454
|
+
return target_->LockFile(f, options, l, dbg);
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
IOStatus UnlockFile(FileLock* l, const IOOptions& options,
|
|
1458
|
+
IODebugContext* dbg) override {
|
|
1459
|
+
return target_->UnlockFile(l, options, dbg);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
IOStatus GetTestDirectory(const IOOptions& options, std::string* path,
|
|
1463
|
+
IODebugContext* dbg) override {
|
|
1464
|
+
return target_->GetTestDirectory(options, path, dbg);
|
|
1465
|
+
}
|
|
1466
|
+
IOStatus NewLogger(const std::string& fname, const IOOptions& options,
|
|
1467
|
+
std::shared_ptr<Logger>* result,
|
|
1468
|
+
IODebugContext* dbg) override {
|
|
1469
|
+
return target_->NewLogger(fname, options, result, dbg);
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
void SanitizeFileOptions(FileOptions* opts) const override {
|
|
1473
|
+
target_->SanitizeFileOptions(opts);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
FileOptions OptimizeForLogRead(
|
|
1477
|
+
const FileOptions& file_options) const override {
|
|
1478
|
+
return target_->OptimizeForLogRead(file_options);
|
|
1479
|
+
}
|
|
1480
|
+
FileOptions OptimizeForManifestRead(
|
|
1481
|
+
const FileOptions& file_options) const override {
|
|
1482
|
+
return target_->OptimizeForManifestRead(file_options);
|
|
1483
|
+
}
|
|
1484
|
+
FileOptions OptimizeForLogWrite(const FileOptions& file_options,
|
|
1485
|
+
const DBOptions& db_options) const override {
|
|
1486
|
+
return target_->OptimizeForLogWrite(file_options, db_options);
|
|
1487
|
+
}
|
|
1488
|
+
FileOptions OptimizeForManifestWrite(
|
|
1489
|
+
const FileOptions& file_options) const override {
|
|
1490
|
+
return target_->OptimizeForManifestWrite(file_options);
|
|
1491
|
+
}
|
|
1492
|
+
FileOptions OptimizeForCompactionTableWrite(
|
|
1493
|
+
const FileOptions& file_options,
|
|
1494
|
+
const ImmutableDBOptions& immutable_ops) const override {
|
|
1495
|
+
return target_->OptimizeForCompactionTableWrite(file_options,
|
|
1496
|
+
immutable_ops);
|
|
1497
|
+
}
|
|
1498
|
+
FileOptions OptimizeForCompactionTableRead(
|
|
1499
|
+
const FileOptions& file_options,
|
|
1500
|
+
const ImmutableDBOptions& db_options) const override {
|
|
1501
|
+
return target_->OptimizeForCompactionTableRead(file_options, db_options);
|
|
1502
|
+
}
|
|
1503
|
+
FileOptions OptimizeForBlobFileRead(
|
|
1504
|
+
const FileOptions& file_options,
|
|
1505
|
+
const ImmutableDBOptions& db_options) const override {
|
|
1506
|
+
return target_->OptimizeForBlobFileRead(file_options, db_options);
|
|
1507
|
+
}
|
|
1508
|
+
IOStatus GetFreeSpace(const std::string& path, const IOOptions& options,
|
|
1509
|
+
uint64_t* diskfree, IODebugContext* dbg) override {
|
|
1510
|
+
return target_->GetFreeSpace(path, options, diskfree, dbg);
|
|
1511
|
+
}
|
|
1512
|
+
IOStatus IsDirectory(const std::string& path, const IOOptions& options,
|
|
1513
|
+
bool* is_dir, IODebugContext* dbg) override {
|
|
1514
|
+
return target_->IsDirectory(path, options, is_dir, dbg);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
const Customizable* Inner() const override { return target_.get(); }
|
|
1518
|
+
Status PrepareOptions(const ConfigOptions& options) override;
|
|
1519
|
+
std::string SerializeOptions(const ConfigOptions& config_options,
|
|
1520
|
+
const std::string& header) const override;
|
|
1521
|
+
|
|
1522
|
+
virtual IOStatus Poll(std::vector<void*>& io_handles,
|
|
1523
|
+
size_t min_completions) override {
|
|
1524
|
+
return target_->Poll(io_handles, min_completions);
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
virtual IOStatus AbortIO(std::vector<void*>& io_handles) override {
|
|
1528
|
+
return target_->AbortIO(io_handles);
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
virtual bool use_async_io() override { return target_->use_async_io(); }
|
|
1532
|
+
|
|
1533
|
+
protected:
|
|
1534
|
+
std::shared_ptr<FileSystem> target_;
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
class FSSequentialFileWrapper : public FSSequentialFile {
|
|
1538
|
+
public:
|
|
1539
|
+
// Creates a FileWrapper around the input File object and without
|
|
1540
|
+
// taking ownership of the object
|
|
1541
|
+
explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {}
|
|
1542
|
+
|
|
1543
|
+
FSSequentialFile* target() const { return target_; }
|
|
1544
|
+
|
|
1545
|
+
IOStatus Read(size_t n, const IOOptions& options, Slice* result,
|
|
1546
|
+
char* scratch, IODebugContext* dbg) override {
|
|
1547
|
+
return target_->Read(n, options, result, scratch, dbg);
|
|
1548
|
+
}
|
|
1549
|
+
IOStatus Skip(uint64_t n) override { return target_->Skip(n); }
|
|
1550
|
+
bool use_direct_io() const override { return target_->use_direct_io(); }
|
|
1551
|
+
size_t GetRequiredBufferAlignment() const override {
|
|
1552
|
+
return target_->GetRequiredBufferAlignment();
|
|
1553
|
+
}
|
|
1554
|
+
IOStatus InvalidateCache(size_t offset, size_t length) override {
|
|
1555
|
+
return target_->InvalidateCache(offset, length);
|
|
1556
|
+
}
|
|
1557
|
+
IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options,
|
|
1558
|
+
Slice* result, char* scratch,
|
|
1559
|
+
IODebugContext* dbg) override {
|
|
1560
|
+
return target_->PositionedRead(offset, n, options, result, scratch, dbg);
|
|
1561
|
+
}
|
|
1562
|
+
Temperature GetTemperature() const override {
|
|
1563
|
+
return target_->GetTemperature();
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
private:
|
|
1567
|
+
FSSequentialFile* target_;
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper {
|
|
1571
|
+
public:
|
|
1572
|
+
// Creates a FileWrapper around the input File object and takes
|
|
1573
|
+
// ownership of the object
|
|
1574
|
+
explicit FSSequentialFileOwnerWrapper(std::unique_ptr<FSSequentialFile>&& t)
|
|
1575
|
+
: FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {}
|
|
1576
|
+
|
|
1577
|
+
private:
|
|
1578
|
+
std::unique_ptr<FSSequentialFile> guard_;
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
class FSRandomAccessFileWrapper : public FSRandomAccessFile {
|
|
1582
|
+
public:
|
|
1583
|
+
// Creates a FileWrapper around the input File object and without
|
|
1584
|
+
// taking ownership of the object
|
|
1585
|
+
explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {}
|
|
1586
|
+
|
|
1587
|
+
FSRandomAccessFile* target() const { return target_; }
|
|
1588
|
+
|
|
1589
|
+
IOStatus Read(uint64_t offset, size_t n, const IOOptions& options,
|
|
1590
|
+
Slice* result, char* scratch,
|
|
1591
|
+
IODebugContext* dbg) const override {
|
|
1592
|
+
return target_->Read(offset, n, options, result, scratch, dbg);
|
|
1593
|
+
}
|
|
1594
|
+
IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs,
|
|
1595
|
+
const IOOptions& options, IODebugContext* dbg) override {
|
|
1596
|
+
return target_->MultiRead(reqs, num_reqs, options, dbg);
|
|
1597
|
+
}
|
|
1598
|
+
IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options,
|
|
1599
|
+
IODebugContext* dbg) override {
|
|
1600
|
+
return target_->Prefetch(offset, n, options, dbg);
|
|
1601
|
+
}
|
|
1602
|
+
size_t GetUniqueId(char* id, size_t max_size) const override {
|
|
1603
|
+
return target_->GetUniqueId(id, max_size);
|
|
1604
|
+
};
|
|
1605
|
+
void Hint(AccessPattern pattern) override { target_->Hint(pattern); }
|
|
1606
|
+
bool use_direct_io() const override { return target_->use_direct_io(); }
|
|
1607
|
+
size_t GetRequiredBufferAlignment() const override {
|
|
1608
|
+
return target_->GetRequiredBufferAlignment();
|
|
1609
|
+
}
|
|
1610
|
+
IOStatus InvalidateCache(size_t offset, size_t length) override {
|
|
1611
|
+
return target_->InvalidateCache(offset, length);
|
|
1612
|
+
}
|
|
1613
|
+
IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts,
|
|
1614
|
+
std::function<void(const FSReadRequest&, void*)> cb,
|
|
1615
|
+
void* cb_arg, void** io_handle, IOHandleDeleter* del_fn,
|
|
1616
|
+
IODebugContext* dbg) override {
|
|
1617
|
+
return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg);
|
|
1618
|
+
}
|
|
1619
|
+
Temperature GetTemperature() const override {
|
|
1620
|
+
return target_->GetTemperature();
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
private:
|
|
1624
|
+
std::unique_ptr<FSRandomAccessFile> guard_;
|
|
1625
|
+
FSRandomAccessFile* target_;
|
|
1626
|
+
};
|
|
1627
|
+
|
|
1628
|
+
class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper {
|
|
1629
|
+
public:
|
|
1630
|
+
// Creates a FileWrapper around the input File object and takes
|
|
1631
|
+
// ownership of the object
|
|
1632
|
+
explicit FSRandomAccessFileOwnerWrapper(
|
|
1633
|
+
std::unique_ptr<FSRandomAccessFile>&& t)
|
|
1634
|
+
: FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {}
|
|
1635
|
+
|
|
1636
|
+
private:
|
|
1637
|
+
std::unique_ptr<FSRandomAccessFile> guard_;
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
class FSWritableFileWrapper : public FSWritableFile {
|
|
1641
|
+
public:
|
|
1642
|
+
// Creates a FileWrapper around the input File object and without
|
|
1643
|
+
// taking ownership of the object
|
|
1644
|
+
explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {}
|
|
1645
|
+
|
|
1646
|
+
FSWritableFile* target() const { return target_; }
|
|
1647
|
+
|
|
1648
|
+
IOStatus Append(const Slice& data, const IOOptions& options,
|
|
1649
|
+
IODebugContext* dbg) override {
|
|
1650
|
+
return target_->Append(data, options, dbg);
|
|
1651
|
+
}
|
|
1652
|
+
IOStatus Append(const Slice& data, const IOOptions& options,
|
|
1653
|
+
const DataVerificationInfo& verification_info,
|
|
1654
|
+
IODebugContext* dbg) override {
|
|
1655
|
+
return target_->Append(data, options, verification_info, dbg);
|
|
1656
|
+
}
|
|
1657
|
+
IOStatus PositionedAppend(const Slice& data, uint64_t offset,
|
|
1658
|
+
const IOOptions& options,
|
|
1659
|
+
IODebugContext* dbg) override {
|
|
1660
|
+
return target_->PositionedAppend(data, offset, options, dbg);
|
|
1661
|
+
}
|
|
1662
|
+
IOStatus PositionedAppend(const Slice& data, uint64_t offset,
|
|
1663
|
+
const IOOptions& options,
|
|
1664
|
+
const DataVerificationInfo& verification_info,
|
|
1665
|
+
IODebugContext* dbg) override {
|
|
1666
|
+
return target_->PositionedAppend(data, offset, options, verification_info,
|
|
1667
|
+
dbg);
|
|
1668
|
+
}
|
|
1669
|
+
IOStatus Truncate(uint64_t size, const IOOptions& options,
|
|
1670
|
+
IODebugContext* dbg) override {
|
|
1671
|
+
return target_->Truncate(size, options, dbg);
|
|
1672
|
+
}
|
|
1673
|
+
IOStatus Close(const IOOptions& options, IODebugContext* dbg) override {
|
|
1674
|
+
return target_->Close(options, dbg);
|
|
1675
|
+
}
|
|
1676
|
+
IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override {
|
|
1677
|
+
return target_->Flush(options, dbg);
|
|
1678
|
+
}
|
|
1679
|
+
IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override {
|
|
1680
|
+
return target_->Sync(options, dbg);
|
|
1681
|
+
}
|
|
1682
|
+
IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override {
|
|
1683
|
+
return target_->Fsync(options, dbg);
|
|
1684
|
+
}
|
|
1685
|
+
bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); }
|
|
1686
|
+
|
|
1687
|
+
bool use_direct_io() const override { return target_->use_direct_io(); }
|
|
1688
|
+
|
|
1689
|
+
size_t GetRequiredBufferAlignment() const override {
|
|
1690
|
+
return target_->GetRequiredBufferAlignment();
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override {
|
|
1694
|
+
target_->SetWriteLifeTimeHint(hint);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
Env::WriteLifeTimeHint GetWriteLifeTimeHint() override {
|
|
1698
|
+
return target_->GetWriteLifeTimeHint();
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override {
|
|
1702
|
+
return target_->GetFileSize(options, dbg);
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
void SetPreallocationBlockSize(size_t size) override {
|
|
1706
|
+
target_->SetPreallocationBlockSize(size);
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
void GetPreallocationStatus(size_t* block_size,
|
|
1710
|
+
size_t* last_allocated_block) override {
|
|
1711
|
+
target_->GetPreallocationStatus(block_size, last_allocated_block);
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
size_t GetUniqueId(char* id, size_t max_size) const override {
|
|
1715
|
+
return target_->GetUniqueId(id, max_size);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
IOStatus InvalidateCache(size_t offset, size_t length) override {
|
|
1719
|
+
return target_->InvalidateCache(offset, length);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options,
|
|
1723
|
+
IODebugContext* dbg) override {
|
|
1724
|
+
return target_->RangeSync(offset, nbytes, options, dbg);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
void PrepareWrite(size_t offset, size_t len, const IOOptions& options,
|
|
1728
|
+
IODebugContext* dbg) override {
|
|
1729
|
+
target_->PrepareWrite(offset, len, options, dbg);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options,
|
|
1733
|
+
IODebugContext* dbg) override {
|
|
1734
|
+
return target_->Allocate(offset, len, options, dbg);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
private:
|
|
1738
|
+
FSWritableFile* target_;
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
class FSWritableFileOwnerWrapper : public FSWritableFileWrapper {
|
|
1742
|
+
public:
|
|
1743
|
+
// Creates a FileWrapper around the input File object and takes
|
|
1744
|
+
// ownership of the object
|
|
1745
|
+
explicit FSWritableFileOwnerWrapper(std::unique_ptr<FSWritableFile>&& t)
|
|
1746
|
+
: FSWritableFileWrapper(t.get()), guard_(std::move(t)) {}
|
|
1747
|
+
|
|
1748
|
+
private:
|
|
1749
|
+
std::unique_ptr<FSWritableFile> guard_;
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
class FSRandomRWFileWrapper : public FSRandomRWFile {
|
|
1753
|
+
public:
|
|
1754
|
+
// Creates a FileWrapper around the input File object and without
|
|
1755
|
+
// taking ownership of the object
|
|
1756
|
+
explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {}
|
|
1757
|
+
|
|
1758
|
+
FSRandomRWFile* target() const { return target_; }
|
|
1759
|
+
|
|
1760
|
+
bool use_direct_io() const override { return target_->use_direct_io(); }
|
|
1761
|
+
size_t GetRequiredBufferAlignment() const override {
|
|
1762
|
+
return target_->GetRequiredBufferAlignment();
|
|
1763
|
+
}
|
|
1764
|
+
IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options,
|
|
1765
|
+
IODebugContext* dbg) override {
|
|
1766
|
+
return target_->Write(offset, data, options, dbg);
|
|
1767
|
+
}
|
|
1768
|
+
IOStatus Read(uint64_t offset, size_t n, const IOOptions& options,
|
|
1769
|
+
Slice* result, char* scratch,
|
|
1770
|
+
IODebugContext* dbg) const override {
|
|
1771
|
+
return target_->Read(offset, n, options, result, scratch, dbg);
|
|
1772
|
+
}
|
|
1773
|
+
IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override {
|
|
1774
|
+
return target_->Flush(options, dbg);
|
|
1775
|
+
}
|
|
1776
|
+
IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override {
|
|
1777
|
+
return target_->Sync(options, dbg);
|
|
1778
|
+
}
|
|
1779
|
+
IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override {
|
|
1780
|
+
return target_->Fsync(options, dbg);
|
|
1781
|
+
}
|
|
1782
|
+
IOStatus Close(const IOOptions& options, IODebugContext* dbg) override {
|
|
1783
|
+
return target_->Close(options, dbg);
|
|
1784
|
+
}
|
|
1785
|
+
Temperature GetTemperature() const override {
|
|
1786
|
+
return target_->GetTemperature();
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
private:
|
|
1790
|
+
FSRandomRWFile* target_;
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper {
|
|
1794
|
+
public:
|
|
1795
|
+
// Creates a FileWrapper around the input File object and takes
|
|
1796
|
+
// ownership of the object
|
|
1797
|
+
explicit FSRandomRWFileOwnerWrapper(std::unique_ptr<FSRandomRWFile>&& t)
|
|
1798
|
+
: FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {}
|
|
1799
|
+
|
|
1800
|
+
private:
|
|
1801
|
+
std::unique_ptr<FSRandomRWFile> guard_;
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
class FSDirectoryWrapper : public FSDirectory {
|
|
1805
|
+
public:
|
|
1806
|
+
// Creates a FileWrapper around the input File object and takes
|
|
1807
|
+
// ownership of the object
|
|
1808
|
+
explicit FSDirectoryWrapper(std::unique_ptr<FSDirectory>&& t)
|
|
1809
|
+
: guard_(std::move(t)) {
|
|
1810
|
+
target_ = guard_.get();
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
// Creates a FileWrapper around the input File object and without
|
|
1814
|
+
// taking ownership of the object
|
|
1815
|
+
explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {}
|
|
1816
|
+
|
|
1817
|
+
IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override {
|
|
1818
|
+
return target_->Fsync(options, dbg);
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
IOStatus FsyncWithDirOptions(
|
|
1822
|
+
const IOOptions& options, IODebugContext* dbg,
|
|
1823
|
+
const DirFsyncOptions& dir_fsync_options) override {
|
|
1824
|
+
return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options);
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
IOStatus Close(const IOOptions& options, IODebugContext* dbg) override {
|
|
1828
|
+
return target_->Close(options, dbg);
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
size_t GetUniqueId(char* id, size_t max_size) const override {
|
|
1832
|
+
return target_->GetUniqueId(id, max_size);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
private:
|
|
1836
|
+
std::unique_ptr<FSDirectory> guard_;
|
|
1837
|
+
FSDirectory* target_;
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
// A utility routine: write "data" to the named file.
|
|
1841
|
+
extern IOStatus WriteStringToFile(FileSystem* fs, const Slice& data,
|
|
1842
|
+
const std::string& fname,
|
|
1843
|
+
bool should_sync = false);
|
|
1844
|
+
|
|
1845
|
+
// A utility routine: read contents of named file into *data
|
|
1846
|
+
extern IOStatus ReadFileToString(FileSystem* fs, const std::string& fname,
|
|
1847
|
+
std::string* data);
|
|
1848
|
+
|
|
1849
|
+
} // namespace ROCKSDB_NAMESPACE
|