@nxtedition/rocksdb 8.1.7 → 8.1.9

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.
Files changed (536) hide show
  1. package/deps/rocksdb/rocksdb/CMakeLists.txt +1 -6
  2. package/deps/rocksdb/rocksdb/Makefile +15 -49
  3. package/deps/rocksdb/rocksdb/TARGETS +2 -0
  4. package/deps/rocksdb/rocksdb/cache/cache.cc +1 -15
  5. package/deps/rocksdb/rocksdb/cache/cache_bench_tool.cc +1 -5
  6. package/deps/rocksdb/rocksdb/cache/cache_helpers.h +1 -1
  7. package/deps/rocksdb/rocksdb/cache/cache_key.cc +1 -1
  8. package/deps/rocksdb/rocksdb/cache/charged_cache.h +1 -1
  9. package/deps/rocksdb/rocksdb/cache/clock_cache.cc +1 -1
  10. package/deps/rocksdb/rocksdb/cache/compressed_secondary_cache.cc +11 -7
  11. package/deps/rocksdb/rocksdb/cache/compressed_secondary_cache.h +3 -1
  12. package/deps/rocksdb/rocksdb/cache/compressed_secondary_cache_test.cc +94 -6
  13. package/deps/rocksdb/rocksdb/cache/lru_cache_test.cc +0 -39
  14. package/deps/rocksdb/rocksdb/cache/sharded_cache.h +1 -1
  15. package/deps/rocksdb/rocksdb/cache/typed_cache.h +1 -1
  16. package/deps/rocksdb/rocksdb/db/blob/blob_contents.h +1 -1
  17. package/deps/rocksdb/rocksdb/db/blob/blob_file_completion_callback.h +0 -17
  18. package/deps/rocksdb/rocksdb/db/blob/blob_source.cc +0 -2
  19. package/deps/rocksdb/rocksdb/db/blob/blob_source_test.cc +0 -2
  20. package/deps/rocksdb/rocksdb/db/blob/db_blob_basic_test.cc +240 -8
  21. package/deps/rocksdb/rocksdb/db/blob/db_blob_compaction_test.cc +0 -14
  22. package/deps/rocksdb/rocksdb/db/blob/db_blob_corruption_test.cc +0 -2
  23. package/deps/rocksdb/rocksdb/db/blob/db_blob_index_test.cc +0 -6
  24. package/deps/rocksdb/rocksdb/db/builder.cc +0 -2
  25. package/deps/rocksdb/rocksdb/db/c.cc +8 -14
  26. package/deps/rocksdb/rocksdb/db/c_test.c +0 -11
  27. package/deps/rocksdb/rocksdb/db/column_family.cc +0 -13
  28. package/deps/rocksdb/rocksdb/db/column_family.h +0 -2
  29. package/deps/rocksdb/rocksdb/db/column_family_test.cc +0 -71
  30. package/deps/rocksdb/rocksdb/db/compact_files_test.cc +0 -11
  31. package/deps/rocksdb/rocksdb/db/compaction/compaction_iterator.cc +113 -43
  32. package/deps/rocksdb/rocksdb/db/compaction/compaction_job.cc +0 -20
  33. package/deps/rocksdb/rocksdb/db/compaction/compaction_job_stats_test.cc +0 -10
  34. package/deps/rocksdb/rocksdb/db/compaction/compaction_job_test.cc +0 -11
  35. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker.cc +0 -2
  36. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker.h +0 -6
  37. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker_fifo.cc +0 -2
  38. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker_fifo.h +0 -2
  39. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker_test.cc +0 -5
  40. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker_universal.cc +0 -2
  41. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker_universal.h +0 -2
  42. package/deps/rocksdb/rocksdb/db/compaction/compaction_service_job.cc +0 -2
  43. package/deps/rocksdb/rocksdb/db/compaction/compaction_service_test.cc +0 -11
  44. package/deps/rocksdb/rocksdb/db/compaction/sst_partitioner.cc +1 -8
  45. package/deps/rocksdb/rocksdb/db/compaction/subcompaction_state.h +0 -2
  46. package/deps/rocksdb/rocksdb/db/compaction/tiered_compaction_test.cc +0 -8
  47. package/deps/rocksdb/rocksdb/db/convenience.cc +0 -2
  48. package/deps/rocksdb/rocksdb/db/corruption_test.cc +53 -56
  49. package/deps/rocksdb/rocksdb/db/cuckoo_table_db_test.cc +0 -10
  50. package/deps/rocksdb/rocksdb/db/db_basic_test.cc +33 -48
  51. package/deps/rocksdb/rocksdb/db/db_block_cache_test.cc +15 -358
  52. package/deps/rocksdb/rocksdb/db/db_bloom_filter_test.cc +0 -24
  53. package/deps/rocksdb/rocksdb/db/db_compaction_filter_test.cc +0 -6
  54. package/deps/rocksdb/rocksdb/db/db_compaction_test.cc +0 -8
  55. package/deps/rocksdb/rocksdb/db/db_dynamic_level_test.cc +0 -8
  56. package/deps/rocksdb/rocksdb/db/db_encryption_test.cc +0 -4
  57. package/deps/rocksdb/rocksdb/db/db_filesnapshot.cc +0 -2
  58. package/deps/rocksdb/rocksdb/db/db_flush_test.cc +0 -33
  59. package/deps/rocksdb/rocksdb/db/db_impl/compacted_db_impl.cc +0 -2
  60. package/deps/rocksdb/rocksdb/db/db_impl/compacted_db_impl.h +0 -4
  61. package/deps/rocksdb/rocksdb/db/db_impl/db_impl.cc +150 -102
  62. package/deps/rocksdb/rocksdb/db/db_impl/db_impl.h +52 -48
  63. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_compaction_flush.cc +0 -66
  64. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_debug.cc +2 -2
  65. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_experimental.cc +0 -2
  66. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_files.cc +0 -6
  67. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_open.cc +0 -16
  68. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_readonly.cc +0 -17
  69. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_readonly.h +0 -4
  70. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_secondary.cc +0 -18
  71. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_secondary.h +0 -4
  72. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_write.cc +6 -9
  73. package/deps/rocksdb/rocksdb/db/db_io_failure_test.cc +0 -4
  74. package/deps/rocksdb/rocksdb/db/db_iter.cc +0 -4
  75. package/deps/rocksdb/rocksdb/db/db_iter.h +0 -6
  76. package/deps/rocksdb/rocksdb/db/db_iterator_test.cc +0 -12
  77. package/deps/rocksdb/rocksdb/db/db_log_iter_test.cc +0 -8
  78. package/deps/rocksdb/rocksdb/db/db_logical_block_size_cache_test.cc +0 -16
  79. package/deps/rocksdb/rocksdb/db/db_merge_operand_test.cc +0 -2
  80. package/deps/rocksdb/rocksdb/db/db_merge_operator_test.cc +5 -5
  81. package/deps/rocksdb/rocksdb/db/db_options_test.cc +0 -4
  82. package/deps/rocksdb/rocksdb/db/db_properties_test.cc +0 -6
  83. package/deps/rocksdb/rocksdb/db/db_range_del_test.cc +0 -10
  84. package/deps/rocksdb/rocksdb/db/db_rate_limiter_test.cc +0 -15
  85. package/deps/rocksdb/rocksdb/db/db_readonly_with_timestamp_test.cc +0 -4
  86. package/deps/rocksdb/rocksdb/db/db_secondary_test.cc +0 -2
  87. package/deps/rocksdb/rocksdb/db/db_sst_test.cc +0 -4
  88. package/deps/rocksdb/rocksdb/db/db_statistics_test.cc +0 -2
  89. package/deps/rocksdb/rocksdb/db/db_table_properties_test.cc +0 -2
  90. package/deps/rocksdb/rocksdb/db/db_tailing_iter_test.cc +0 -9
  91. package/deps/rocksdb/rocksdb/db/db_test.cc +2 -64
  92. package/deps/rocksdb/rocksdb/db/db_test2.cc +0 -138
  93. package/deps/rocksdb/rocksdb/db/db_test_util.cc +0 -33
  94. package/deps/rocksdb/rocksdb/db/db_test_util.h +11 -94
  95. package/deps/rocksdb/rocksdb/db/db_universal_compaction_test.cc +0 -8
  96. package/deps/rocksdb/rocksdb/db/db_wal_test.cc +18 -53
  97. package/deps/rocksdb/rocksdb/db/db_with_timestamp_basic_test.cc +0 -6
  98. package/deps/rocksdb/rocksdb/db/db_with_timestamp_compaction_test.cc +0 -2
  99. package/deps/rocksdb/rocksdb/db/db_write_buffer_manager_test.cc +0 -2
  100. package/deps/rocksdb/rocksdb/db/db_write_test.cc +115 -12
  101. package/deps/rocksdb/rocksdb/db/deletefile_test.cc +0 -11
  102. package/deps/rocksdb/rocksdb/db/error_handler.cc +0 -27
  103. package/deps/rocksdb/rocksdb/db/error_handler_fs_test.cc +0 -12
  104. package/deps/rocksdb/rocksdb/db/event_helpers.cc +1 -49
  105. package/deps/rocksdb/rocksdb/db/event_helpers.h +0 -4
  106. package/deps/rocksdb/rocksdb/db/experimental.cc +0 -14
  107. package/deps/rocksdb/rocksdb/db/external_sst_file_basic_test.cc +1 -2
  108. package/deps/rocksdb/rocksdb/db/external_sst_file_ingestion_job.cc +0 -2
  109. package/deps/rocksdb/rocksdb/db/external_sst_file_test.cc +16 -27
  110. package/deps/rocksdb/rocksdb/db/flush_job.cc +0 -6
  111. package/deps/rocksdb/rocksdb/db/flush_job.h +0 -4
  112. package/deps/rocksdb/rocksdb/db/flush_job_test.cc +0 -2
  113. package/deps/rocksdb/rocksdb/db/forward_iterator.cc +0 -2
  114. package/deps/rocksdb/rocksdb/db/forward_iterator.h +0 -2
  115. package/deps/rocksdb/rocksdb/db/forward_iterator_bench.cc +2 -2
  116. package/deps/rocksdb/rocksdb/db/import_column_family_job.cc +0 -2
  117. package/deps/rocksdb/rocksdb/db/import_column_family_test.cc +0 -12
  118. package/deps/rocksdb/rocksdb/db/internal_stats.cc +0 -8
  119. package/deps/rocksdb/rocksdb/db/internal_stats.h +0 -151
  120. package/deps/rocksdb/rocksdb/db/job_context.h +4 -5
  121. package/deps/rocksdb/rocksdb/db/listener_test.cc +19 -16
  122. package/deps/rocksdb/rocksdb/db/malloc_stats.cc +0 -2
  123. package/deps/rocksdb/rocksdb/db/malloc_stats.h +0 -2
  124. package/deps/rocksdb/rocksdb/db/memtable.cc +12 -10
  125. package/deps/rocksdb/rocksdb/db/memtable.h +0 -4
  126. package/deps/rocksdb/rocksdb/db/memtable_list.cc +0 -8
  127. package/deps/rocksdb/rocksdb/db/memtable_list_test.cc +0 -2
  128. package/deps/rocksdb/rocksdb/db/merge_helper.cc +6 -5
  129. package/deps/rocksdb/rocksdb/db/merge_test.cc +0 -8
  130. package/deps/rocksdb/rocksdb/db/obsolete_files_test.cc +0 -11
  131. package/deps/rocksdb/rocksdb/db/options_file_test.cc +0 -10
  132. package/deps/rocksdb/rocksdb/db/perf_context_test.cc +0 -4
  133. package/deps/rocksdb/rocksdb/db/periodic_task_scheduler.cc +0 -2
  134. package/deps/rocksdb/rocksdb/db/periodic_task_scheduler.h +0 -2
  135. package/deps/rocksdb/rocksdb/db/periodic_task_scheduler_test.cc +0 -2
  136. package/deps/rocksdb/rocksdb/db/plain_table_db_test.cc +0 -10
  137. package/deps/rocksdb/rocksdb/db/prefix_test.cc +0 -12
  138. package/deps/rocksdb/rocksdb/db/repair.cc +0 -2
  139. package/deps/rocksdb/rocksdb/db/repair_test.cc +0 -12
  140. package/deps/rocksdb/rocksdb/db/seqno_time_test.cc +0 -2
  141. package/deps/rocksdb/rocksdb/db/snapshot_checker.h +0 -2
  142. package/deps/rocksdb/rocksdb/db/table_cache.cc +0 -10
  143. package/deps/rocksdb/rocksdb/db/table_cache_sync_and_async.h +0 -4
  144. package/deps/rocksdb/rocksdb/db/table_properties_collector_test.cc +0 -4
  145. package/deps/rocksdb/rocksdb/db/transaction_log_impl.cc +0 -2
  146. package/deps/rocksdb/rocksdb/db/transaction_log_impl.h +0 -2
  147. package/deps/rocksdb/rocksdb/db/version_edit.h +1 -1
  148. package/deps/rocksdb/rocksdb/db/version_set.cc +86 -47
  149. package/deps/rocksdb/rocksdb/db/version_set.h +10 -4
  150. package/deps/rocksdb/rocksdb/db/version_set_sync_and_async.h +31 -11
  151. package/deps/rocksdb/rocksdb/db/version_set_test.cc +0 -2
  152. package/deps/rocksdb/rocksdb/db/wal_manager.cc +0 -2
  153. package/deps/rocksdb/rocksdb/db/wal_manager.h +0 -2
  154. package/deps/rocksdb/rocksdb/db/wal_manager_test.cc +0 -10
  155. package/deps/rocksdb/rocksdb/db/wide/db_wide_basic_test.cc +388 -0
  156. package/deps/rocksdb/rocksdb/db/write_batch_test.cc +0 -2
  157. package/deps/rocksdb/rocksdb/db/write_callback_test.cc +0 -11
  158. package/deps/rocksdb/rocksdb/db/write_thread.cc +26 -0
  159. package/deps/rocksdb/rocksdb/db/write_thread.h +24 -0
  160. package/deps/rocksdb/rocksdb/db_stress_tool/cf_consistency_stress.cc +0 -6
  161. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_common.h +1 -4
  162. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_gflags.cc +6 -6
  163. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_listener.cc +0 -2
  164. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_listener.h +0 -2
  165. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_test_base.cc +40 -131
  166. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_test_base.h +2 -20
  167. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_tool.cc +0 -7
  168. package/deps/rocksdb/rocksdb/db_stress_tool/expected_state.cc +0 -12
  169. package/deps/rocksdb/rocksdb/db_stress_tool/multi_ops_txns_stress.cc +0 -61
  170. package/deps/rocksdb/rocksdb/db_stress_tool/multi_ops_txns_stress.h +0 -8
  171. package/deps/rocksdb/rocksdb/db_stress_tool/no_batched_ops_stress.cc +122 -54
  172. package/deps/rocksdb/rocksdb/env/composite_env.cc +0 -10
  173. package/deps/rocksdb/rocksdb/env/composite_env_wrapper.h +0 -2
  174. package/deps/rocksdb/rocksdb/env/env.cc +2 -33
  175. package/deps/rocksdb/rocksdb/env/env_basic_test.cc +0 -4
  176. package/deps/rocksdb/rocksdb/env/env_chroot.cc +2 -2
  177. package/deps/rocksdb/rocksdb/env/env_chroot.h +2 -2
  178. package/deps/rocksdb/rocksdb/env/env_encryption.cc +2 -7
  179. package/deps/rocksdb/rocksdb/env/env_encryption_ctr.h +0 -2
  180. package/deps/rocksdb/rocksdb/env/env_test.cc +2 -18
  181. package/deps/rocksdb/rocksdb/env/file_system.cc +1 -14
  182. package/deps/rocksdb/rocksdb/env/fs_posix.cc +0 -18
  183. package/deps/rocksdb/rocksdb/env/fs_readonly.h +0 -2
  184. package/deps/rocksdb/rocksdb/env/fs_remap.cc +0 -2
  185. package/deps/rocksdb/rocksdb/env/fs_remap.h +0 -2
  186. package/deps/rocksdb/rocksdb/env/mock_env.cc +0 -12
  187. package/deps/rocksdb/rocksdb/file/delete_scheduler.cc +0 -2
  188. package/deps/rocksdb/rocksdb/file/delete_scheduler.h +0 -2
  189. package/deps/rocksdb/rocksdb/file/delete_scheduler_test.cc +0 -7
  190. package/deps/rocksdb/rocksdb/file/file_prefetch_buffer.cc +3 -2
  191. package/deps/rocksdb/rocksdb/file/file_util.cc +0 -9
  192. package/deps/rocksdb/rocksdb/file/prefetch_test.cc +86 -99
  193. package/deps/rocksdb/rocksdb/file/random_access_file_reader.cc +0 -18
  194. package/deps/rocksdb/rocksdb/file/random_access_file_reader.h +0 -8
  195. package/deps/rocksdb/rocksdb/file/random_access_file_reader_test.cc +0 -2
  196. package/deps/rocksdb/rocksdb/file/sequence_file_reader.cc +0 -8
  197. package/deps/rocksdb/rocksdb/file/sequence_file_reader.h +0 -10
  198. package/deps/rocksdb/rocksdb/file/sst_file_manager_impl.cc +0 -18
  199. package/deps/rocksdb/rocksdb/file/sst_file_manager_impl.h +0 -2
  200. package/deps/rocksdb/rocksdb/file/writable_file_writer.cc +0 -36
  201. package/deps/rocksdb/rocksdb/file/writable_file_writer.h +0 -16
  202. package/deps/rocksdb/rocksdb/include/rocksdb/advanced_cache.h +527 -0
  203. package/deps/rocksdb/rocksdb/include/rocksdb/advanced_options.h +1 -4
  204. package/deps/rocksdb/rocksdb/include/rocksdb/c.h +0 -4
  205. package/deps/rocksdb/rocksdb/include/rocksdb/cache.h +18 -432
  206. package/deps/rocksdb/rocksdb/include/rocksdb/compaction_filter.h +49 -3
  207. package/deps/rocksdb/rocksdb/include/rocksdb/configurable.h +0 -10
  208. package/deps/rocksdb/rocksdb/include/rocksdb/convenience.h +18 -77
  209. package/deps/rocksdb/rocksdb/include/rocksdb/customizable.h +0 -4
  210. package/deps/rocksdb/rocksdb/include/rocksdb/data_structure.h +154 -19
  211. package/deps/rocksdb/rocksdb/include/rocksdb/db.h +90 -37
  212. package/deps/rocksdb/rocksdb/include/rocksdb/db_dump_tool.h +0 -2
  213. package/deps/rocksdb/rocksdb/include/rocksdb/env.h +1 -20
  214. package/deps/rocksdb/rocksdb/include/rocksdb/env_encryption.h +0 -2
  215. package/deps/rocksdb/rocksdb/include/rocksdb/file_system.h +0 -8
  216. package/deps/rocksdb/rocksdb/include/rocksdb/ldb_tool.h +0 -2
  217. package/deps/rocksdb/rocksdb/include/rocksdb/listener.h +0 -7
  218. package/deps/rocksdb/rocksdb/include/rocksdb/memtablerep.h +0 -2
  219. package/deps/rocksdb/rocksdb/include/rocksdb/options.h +44 -60
  220. package/deps/rocksdb/rocksdb/include/rocksdb/port_defs.h +22 -0
  221. package/deps/rocksdb/rocksdb/include/rocksdb/secondary_cache.h +1 -1
  222. package/deps/rocksdb/rocksdb/include/rocksdb/sst_dump_tool.h +0 -2
  223. package/deps/rocksdb/rocksdb/include/rocksdb/sst_file_reader.h +0 -2
  224. package/deps/rocksdb/rocksdb/include/rocksdb/sst_file_writer.h +0 -2
  225. package/deps/rocksdb/rocksdb/include/rocksdb/statistics.h +17 -64
  226. package/deps/rocksdb/rocksdb/include/rocksdb/status.h +1 -0
  227. package/deps/rocksdb/rocksdb/include/rocksdb/system_clock.h +0 -2
  228. package/deps/rocksdb/rocksdb/include/rocksdb/table.h +0 -13
  229. package/deps/rocksdb/rocksdb/include/rocksdb/thread_status.h +1 -1
  230. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/backup_engine.h +0 -2
  231. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/cache_dump_load.h +0 -2
  232. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h +0 -2
  233. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/customizable_util.h +4 -59
  234. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/db_ttl.h +0 -2
  235. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/debug.h +0 -2
  236. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/env_mirror.h +0 -2
  237. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/ldb_cmd.h +0 -2
  238. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/memory_util.h +0 -2
  239. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/object_registry.h +0 -2
  240. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/optimistic_transaction_db.h +0 -2
  241. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/options_util.h +5 -29
  242. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/replayer.h +0 -2
  243. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/sim_cache.h +4 -7
  244. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/stackable_db.h +18 -4
  245. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/table_properties_collectors.h +0 -2
  246. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/transaction.h +0 -2
  247. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/transaction_db.h +0 -2
  248. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/transaction_db_mutex.h +0 -2
  249. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/write_batch_with_index.h +0 -2
  250. package/deps/rocksdb/rocksdb/include/rocksdb/version.h +3 -3
  251. package/deps/rocksdb/rocksdb/logging/auto_roll_logger.cc +0 -4
  252. package/deps/rocksdb/rocksdb/logging/auto_roll_logger.h +0 -2
  253. package/deps/rocksdb/rocksdb/logging/auto_roll_logger_test.cc +0 -11
  254. package/deps/rocksdb/rocksdb/memory/jemalloc_nodump_allocator.cc +0 -2
  255. package/deps/rocksdb/rocksdb/memory/memory_allocator.cc +0 -11
  256. package/deps/rocksdb/rocksdb/memory/memory_allocator_test.cc +0 -4
  257. package/deps/rocksdb/rocksdb/memtable/hash_linklist_rep.cc +0 -2
  258. package/deps/rocksdb/rocksdb/memtable/hash_skiplist_rep.cc +0 -2
  259. package/deps/rocksdb/rocksdb/memtable/memtablerep_bench.cc +0 -2
  260. package/deps/rocksdb/rocksdb/memtable/skiplistrep.cc +0 -2
  261. package/deps/rocksdb/rocksdb/memtable/vectorrep.cc +0 -2
  262. package/deps/rocksdb/rocksdb/memtable/write_buffer_manager.cc +0 -12
  263. package/deps/rocksdb/rocksdb/memtable/write_buffer_manager_test.cc +1 -2
  264. package/deps/rocksdb/rocksdb/monitoring/statistics.cc +1 -36
  265. package/deps/rocksdb/rocksdb/monitoring/statistics_test.cc +0 -4
  266. package/deps/rocksdb/rocksdb/monitoring/stats_history_test.cc +0 -2
  267. package/deps/rocksdb/rocksdb/options/cf_options.cc +1 -4
  268. package/deps/rocksdb/rocksdb/options/cf_options.h +0 -2
  269. package/deps/rocksdb/rocksdb/options/configurable.cc +0 -55
  270. package/deps/rocksdb/rocksdb/options/configurable_helper.h +0 -2
  271. package/deps/rocksdb/rocksdb/options/configurable_test.cc +0 -20
  272. package/deps/rocksdb/rocksdb/options/configurable_test.h +0 -10
  273. package/deps/rocksdb/rocksdb/options/customizable.cc +0 -6
  274. package/deps/rocksdb/rocksdb/options/customizable_test.cc +21 -161
  275. package/deps/rocksdb/rocksdb/options/db_options.cc +1 -8
  276. package/deps/rocksdb/rocksdb/options/db_options.h +0 -4
  277. package/deps/rocksdb/rocksdb/options/options.cc +0 -2
  278. package/deps/rocksdb/rocksdb/options/options_helper.cc +0 -58
  279. package/deps/rocksdb/rocksdb/options/options_helper.h +0 -6
  280. package/deps/rocksdb/rocksdb/options/options_parser.cc +0 -2
  281. package/deps/rocksdb/rocksdb/options/options_parser.h +0 -2
  282. package/deps/rocksdb/rocksdb/options/options_settable_test.cc +14 -8
  283. package/deps/rocksdb/rocksdb/options/options_test.cc +260 -298
  284. package/deps/rocksdb/rocksdb/port/port_posix.h +1 -1
  285. package/deps/rocksdb/rocksdb/port/stack_trace.cc +87 -6
  286. package/deps/rocksdb/rocksdb/port/win/env_win.h +2 -2
  287. package/deps/rocksdb/rocksdb/port/win/port_win.h +11 -10
  288. package/deps/rocksdb/rocksdb/src.mk +1 -0
  289. package/deps/rocksdb/rocksdb/table/adaptive/adaptive_table_factory.cc +0 -2
  290. package/deps/rocksdb/rocksdb/table/adaptive/adaptive_table_factory.h +0 -2
  291. package/deps/rocksdb/rocksdb/table/block_based/block.h +1 -0
  292. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_builder.cc +2 -49
  293. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_factory.cc +4 -103
  294. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_factory.h +0 -2
  295. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader.cc +20 -107
  296. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader.h +2 -6
  297. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader_sync_and_async.h +1 -4
  298. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader_test.cc +1 -12
  299. package/deps/rocksdb/rocksdb/table/block_based/block_cache.h +0 -4
  300. package/deps/rocksdb/rocksdb/table/block_based/cachable_entry.h +1 -1
  301. package/deps/rocksdb/rocksdb/table/block_based/data_block_hash_index.h +1 -0
  302. package/deps/rocksdb/rocksdb/table/block_based/filter_policy.cc +0 -7
  303. package/deps/rocksdb/rocksdb/table/block_based/flush_block_policy.cc +8 -22
  304. package/deps/rocksdb/rocksdb/table/block_based/partitioned_index_reader.cc +5 -0
  305. package/deps/rocksdb/rocksdb/table/block_based/reader_common.h +1 -8
  306. package/deps/rocksdb/rocksdb/table/block_fetcher_test.cc +0 -2
  307. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_builder.cc +0 -2
  308. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_builder.h +0 -2
  309. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_builder_test.cc +0 -10
  310. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_factory.cc +0 -4
  311. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_factory.h +0 -2
  312. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_reader.cc +0 -2
  313. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_reader.h +0 -2
  314. package/deps/rocksdb/rocksdb/table/cuckoo/cuckoo_table_reader_test.cc +0 -10
  315. package/deps/rocksdb/rocksdb/table/format.cc +0 -6
  316. package/deps/rocksdb/rocksdb/table/get_context.cc +22 -21
  317. package/deps/rocksdb/rocksdb/table/get_context.h +15 -1
  318. package/deps/rocksdb/rocksdb/table/multiget_context.h +6 -3
  319. package/deps/rocksdb/rocksdb/table/plain/plain_table_builder.cc +0 -2
  320. package/deps/rocksdb/rocksdb/table/plain/plain_table_builder.h +0 -2
  321. package/deps/rocksdb/rocksdb/table/plain/plain_table_factory.cc +0 -54
  322. package/deps/rocksdb/rocksdb/table/plain/plain_table_factory.h +0 -2
  323. package/deps/rocksdb/rocksdb/table/plain/plain_table_index.cc +0 -2
  324. package/deps/rocksdb/rocksdb/table/plain/plain_table_index.h +0 -2
  325. package/deps/rocksdb/rocksdb/table/plain/plain_table_key_coding.cc +0 -2
  326. package/deps/rocksdb/rocksdb/table/plain/plain_table_key_coding.h +0 -2
  327. package/deps/rocksdb/rocksdb/table/plain/plain_table_reader.cc +0 -2
  328. package/deps/rocksdb/rocksdb/table/plain/plain_table_reader.h +0 -2
  329. package/deps/rocksdb/rocksdb/table/sst_file_dumper.cc +0 -2
  330. package/deps/rocksdb/rocksdb/table/sst_file_dumper.h +0 -2
  331. package/deps/rocksdb/rocksdb/table/sst_file_reader.cc +0 -2
  332. package/deps/rocksdb/rocksdb/table/sst_file_reader_test.cc +0 -11
  333. package/deps/rocksdb/rocksdb/table/sst_file_writer.cc +0 -2
  334. package/deps/rocksdb/rocksdb/table/table_factory.cc +1 -14
  335. package/deps/rocksdb/rocksdb/table/table_reader_bench.cc +0 -10
  336. package/deps/rocksdb/rocksdb/table/table_test.cc +2 -17
  337. package/deps/rocksdb/rocksdb/test_util/testutil.cc +0 -16
  338. package/deps/rocksdb/rocksdb/test_util/testutil.h +0 -2
  339. package/deps/rocksdb/rocksdb/test_util/transaction_test_util.cc +0 -2
  340. package/deps/rocksdb/rocksdb/test_util/transaction_test_util.h +0 -2
  341. package/deps/rocksdb/rocksdb/tools/blob_dump.cc +0 -8
  342. package/deps/rocksdb/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.cc +0 -2
  343. package/deps/rocksdb/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc +0 -9
  344. package/deps/rocksdb/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_tool.cc +0 -8
  345. package/deps/rocksdb/rocksdb/tools/db_bench_tool.cc +5 -131
  346. package/deps/rocksdb/rocksdb/tools/db_bench_tool_test.cc +12 -4
  347. package/deps/rocksdb/rocksdb/tools/db_repl_stress.cc +0 -8
  348. package/deps/rocksdb/rocksdb/tools/db_sanity_test.cc +0 -4
  349. package/deps/rocksdb/rocksdb/tools/dump/db_dump_tool.cc +0 -2
  350. package/deps/rocksdb/rocksdb/tools/dump/rocksdb_dump.cc +2 -5
  351. package/deps/rocksdb/rocksdb/tools/dump/rocksdb_undump.cc +2 -5
  352. package/deps/rocksdb/rocksdb/tools/io_tracer_parser.cc +0 -8
  353. package/deps/rocksdb/rocksdb/tools/io_tracer_parser_test.cc +0 -8
  354. package/deps/rocksdb/rocksdb/tools/io_tracer_parser_tool.cc +0 -2
  355. package/deps/rocksdb/rocksdb/tools/io_tracer_parser_tool.h +0 -2
  356. package/deps/rocksdb/rocksdb/tools/ldb.cc +0 -8
  357. package/deps/rocksdb/rocksdb/tools/ldb_cmd.cc +0 -2
  358. package/deps/rocksdb/rocksdb/tools/ldb_cmd_test.cc +0 -10
  359. package/deps/rocksdb/rocksdb/tools/ldb_tool.cc +0 -2
  360. package/deps/rocksdb/rocksdb/tools/reduce_levels_test.cc +0 -10
  361. package/deps/rocksdb/rocksdb/tools/simulated_hybrid_file_system.cc +0 -2
  362. package/deps/rocksdb/rocksdb/tools/simulated_hybrid_file_system.h +0 -2
  363. package/deps/rocksdb/rocksdb/tools/sst_dump.cc +0 -8
  364. package/deps/rocksdb/rocksdb/tools/sst_dump_test.cc +0 -10
  365. package/deps/rocksdb/rocksdb/tools/sst_dump_tool.cc +0 -2
  366. package/deps/rocksdb/rocksdb/tools/trace_analyzer.cc +0 -8
  367. package/deps/rocksdb/rocksdb/tools/trace_analyzer_test.cc +1 -11
  368. package/deps/rocksdb/rocksdb/tools/trace_analyzer_tool.cc +6 -2
  369. package/deps/rocksdb/rocksdb/tools/trace_analyzer_tool.h +6 -3
  370. package/deps/rocksdb/rocksdb/tools/write_stress.cc +0 -4
  371. package/deps/rocksdb/rocksdb/util/aligned_buffer.h +1 -0
  372. package/deps/rocksdb/rocksdb/util/autovector.h +0 -13
  373. package/deps/rocksdb/rocksdb/util/autovector_test.cc +0 -7
  374. package/deps/rocksdb/rocksdb/util/build_version.cc.in +0 -2
  375. package/deps/rocksdb/rocksdb/util/compaction_job_stats_impl.cc +0 -8
  376. package/deps/rocksdb/rocksdb/util/comparator.cc +0 -8
  377. package/deps/rocksdb/rocksdb/util/core_local.h +1 -0
  378. package/deps/rocksdb/rocksdb/util/data_structure.cc +18 -0
  379. package/deps/rocksdb/rocksdb/util/distributed_mutex.h +2 -0
  380. package/deps/rocksdb/rocksdb/util/duplicate_detector.h +0 -2
  381. package/deps/rocksdb/rocksdb/util/file_checksum_helper.cc +1 -6
  382. package/deps/rocksdb/rocksdb/util/file_checksum_helper.h +1 -0
  383. package/deps/rocksdb/rocksdb/util/file_reader_writer_test.cc +0 -8
  384. package/deps/rocksdb/rocksdb/util/filter_bench.cc +3 -3
  385. package/deps/rocksdb/rocksdb/util/mutexlock.h +1 -0
  386. package/deps/rocksdb/rocksdb/util/random.cc +1 -0
  387. package/deps/rocksdb/rocksdb/util/slice.cc +0 -38
  388. package/deps/rocksdb/rocksdb/util/slice_test.cc +63 -2
  389. package/deps/rocksdb/rocksdb/util/status.cc +4 -3
  390. package/deps/rocksdb/rocksdb/util/string_util.cc +0 -2
  391. package/deps/rocksdb/rocksdb/util/string_util.h +1 -2
  392. package/deps/rocksdb/rocksdb/util/thread_local_test.cc +0 -4
  393. package/deps/rocksdb/rocksdb/utilities/backup/backup_engine.cc +0 -2
  394. package/deps/rocksdb/rocksdb/utilities/backup/backup_engine_impl.h +0 -2
  395. package/deps/rocksdb/rocksdb/utilities/backup/backup_engine_test.cc +3 -3
  396. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_compaction_filter.cc +0 -2
  397. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_compaction_filter.h +0 -2
  398. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db.cc +0 -2
  399. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db.h +0 -2
  400. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_gc_stats.h +0 -2
  401. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_impl.cc +0 -2
  402. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_impl.h +0 -2
  403. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.cc +0 -2
  404. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_iterator.h +0 -2
  405. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_listener.h +0 -2
  406. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_db_test.cc +0 -10
  407. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_dump_tool.cc +0 -2
  408. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_dump_tool.h +0 -2
  409. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_file.cc +0 -2
  410. package/deps/rocksdb/rocksdb/utilities/blob_db/blob_file.h +0 -2
  411. package/deps/rocksdb/rocksdb/utilities/cache_dump_load.cc +0 -2
  412. package/deps/rocksdb/rocksdb/utilities/cache_dump_load_impl.cc +0 -2
  413. package/deps/rocksdb/rocksdb/utilities/cache_dump_load_impl.h +0 -2
  414. package/deps/rocksdb/rocksdb/utilities/cassandra/cassandra_compaction_filter.cc +0 -4
  415. package/deps/rocksdb/rocksdb/utilities/cassandra/cassandra_functional_test.cc +0 -2
  416. package/deps/rocksdb/rocksdb/utilities/cassandra/cassandra_options.h +0 -2
  417. package/deps/rocksdb/rocksdb/utilities/cassandra/merge_operator.cc +0 -2
  418. package/deps/rocksdb/rocksdb/utilities/checkpoint/checkpoint_impl.cc +0 -2
  419. package/deps/rocksdb/rocksdb/utilities/checkpoint/checkpoint_impl.h +0 -2
  420. package/deps/rocksdb/rocksdb/utilities/checkpoint/checkpoint_test.cc +24 -10
  421. package/deps/rocksdb/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc +0 -2
  422. package/deps/rocksdb/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.h +0 -2
  423. package/deps/rocksdb/rocksdb/utilities/compaction_filters.cc +4 -8
  424. package/deps/rocksdb/rocksdb/utilities/debug.cc +0 -2
  425. package/deps/rocksdb/rocksdb/utilities/env_mirror.cc +0 -2
  426. package/deps/rocksdb/rocksdb/utilities/env_mirror_test.cc +0 -10
  427. package/deps/rocksdb/rocksdb/utilities/env_timed.cc +0 -6
  428. package/deps/rocksdb/rocksdb/utilities/env_timed.h +0 -2
  429. package/deps/rocksdb/rocksdb/utilities/env_timed_test.cc +0 -10
  430. package/deps/rocksdb/rocksdb/utilities/leveldb_options/leveldb_options.cc +1 -1
  431. package/deps/rocksdb/rocksdb/utilities/memory/memory_test.cc +0 -10
  432. package/deps/rocksdb/rocksdb/utilities/memory/memory_util.cc +0 -2
  433. package/deps/rocksdb/rocksdb/utilities/merge_operators/max.cc +38 -54
  434. package/deps/rocksdb/rocksdb/utilities/merge_operators/max_operator.h +35 -0
  435. package/deps/rocksdb/rocksdb/utilities/merge_operators/put.cc +41 -59
  436. package/deps/rocksdb/rocksdb/utilities/merge_operators/put_operator.h +56 -0
  437. package/deps/rocksdb/rocksdb/utilities/merge_operators/string_append/stringappend.cc +0 -2
  438. package/deps/rocksdb/rocksdb/utilities/merge_operators/string_append/stringappend2.cc +0 -2
  439. package/deps/rocksdb/rocksdb/utilities/merge_operators/string_append/stringappend_test.cc +0 -4
  440. package/deps/rocksdb/rocksdb/utilities/merge_operators/uint64add.cc +29 -48
  441. package/deps/rocksdb/rocksdb/utilities/merge_operators/uint64add.h +35 -0
  442. package/deps/rocksdb/rocksdb/utilities/merge_operators.cc +35 -40
  443. package/deps/rocksdb/rocksdb/utilities/object_registry.cc +0 -2
  444. package/deps/rocksdb/rocksdb/utilities/object_registry_test.cc +0 -10
  445. package/deps/rocksdb/rocksdb/utilities/option_change_migration/option_change_migration.cc +0 -10
  446. package/deps/rocksdb/rocksdb/utilities/option_change_migration/option_change_migration_test.cc +0 -2
  447. package/deps/rocksdb/rocksdb/utilities/options/options_util.cc +0 -42
  448. package/deps/rocksdb/rocksdb/utilities/options/options_util_test.cc +25 -37
  449. package/deps/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier.cc +0 -2
  450. package/deps/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier.h +0 -2
  451. package/deps/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier_file.cc +0 -2
  452. package/deps/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier_file.h +0 -2
  453. package/deps/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier_metadata.cc +0 -2
  454. package/deps/rocksdb/rocksdb/utilities/persistent_cache/block_cache_tier_metadata.h +0 -2
  455. package/deps/rocksdb/rocksdb/utilities/persistent_cache/hash_table.h +0 -2
  456. package/deps/rocksdb/rocksdb/utilities/persistent_cache/hash_table_bench.cc +1 -1
  457. package/deps/rocksdb/rocksdb/utilities/persistent_cache/hash_table_evictable.h +0 -2
  458. package/deps/rocksdb/rocksdb/utilities/persistent_cache/hash_table_test.cc +0 -2
  459. package/deps/rocksdb/rocksdb/utilities/persistent_cache/lrulist.h +0 -2
  460. package/deps/rocksdb/rocksdb/utilities/persistent_cache/persistent_cache_bench.cc +0 -4
  461. package/deps/rocksdb/rocksdb/utilities/persistent_cache/persistent_cache_test.cc +2 -51
  462. package/deps/rocksdb/rocksdb/utilities/persistent_cache/persistent_cache_test.h +0 -2
  463. package/deps/rocksdb/rocksdb/utilities/persistent_cache/persistent_cache_tier.cc +0 -2
  464. package/deps/rocksdb/rocksdb/utilities/persistent_cache/persistent_cache_tier.h +0 -2
  465. package/deps/rocksdb/rocksdb/utilities/persistent_cache/volatile_tier_impl.cc +0 -2
  466. package/deps/rocksdb/rocksdb/utilities/persistent_cache/volatile_tier_impl.h +0 -2
  467. package/deps/rocksdb/rocksdb/utilities/simulator_cache/sim_cache.cc +26 -25
  468. package/deps/rocksdb/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.cc +1 -7
  469. package/deps/rocksdb/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.h +0 -2
  470. package/deps/rocksdb/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc +0 -7
  471. package/deps/rocksdb/rocksdb/utilities/trace/replayer_impl.cc +0 -2
  472. package/deps/rocksdb/rocksdb/utilities/trace/replayer_impl.h +0 -2
  473. package/deps/rocksdb/rocksdb/utilities/transactions/lock/lock_manager.cc +0 -2
  474. package/deps/rocksdb/rocksdb/utilities/transactions/lock/lock_manager.h +0 -2
  475. package/deps/rocksdb/rocksdb/utilities/transactions/lock/lock_tracker.h +0 -2
  476. package/deps/rocksdb/rocksdb/utilities/transactions/lock/point/point_lock_manager.cc +0 -2
  477. package/deps/rocksdb/rocksdb/utilities/transactions/lock/point/point_lock_manager.h +0 -2
  478. package/deps/rocksdb/rocksdb/utilities/transactions/lock/point/point_lock_manager_test.cc +0 -11
  479. package/deps/rocksdb/rocksdb/utilities/transactions/lock/point/point_lock_tracker.cc +0 -2
  480. package/deps/rocksdb/rocksdb/utilities/transactions/lock/point/point_lock_tracker.h +0 -2
  481. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_lock_manager.h +0 -2
  482. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_locking_test.cc +0 -11
  483. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/concurrent_tree.cc +0 -2
  484. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/keyrange.cc +0 -2
  485. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.cc +0 -2
  486. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/locktree.cc +0 -2
  487. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/manager.cc +0 -2
  488. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/range_buffer.cc +0 -2
  489. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/treenode.cc +0 -2
  490. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/txnid_set.cc +0 -2
  491. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/wfg.cc +0 -2
  492. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/standalone_port.cc +0 -2
  493. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/dbt.cc +0 -2
  494. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/memarena.cc +0 -2
  495. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.cc +0 -2
  496. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.h +0 -2
  497. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_tracker.cc +0 -2
  498. package/deps/rocksdb/rocksdb/utilities/transactions/optimistic_transaction.cc +0 -2
  499. package/deps/rocksdb/rocksdb/utilities/transactions/optimistic_transaction.h +0 -2
  500. package/deps/rocksdb/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc +0 -2
  501. package/deps/rocksdb/rocksdb/utilities/transactions/optimistic_transaction_db_impl.h +0 -2
  502. package/deps/rocksdb/rocksdb/utilities/transactions/optimistic_transaction_test.cc +0 -12
  503. package/deps/rocksdb/rocksdb/utilities/transactions/pessimistic_transaction.cc +0 -2
  504. package/deps/rocksdb/rocksdb/utilities/transactions/pessimistic_transaction.h +0 -2
  505. package/deps/rocksdb/rocksdb/utilities/transactions/pessimistic_transaction_db.cc +0 -2
  506. package/deps/rocksdb/rocksdb/utilities/transactions/pessimistic_transaction_db.h +0 -2
  507. package/deps/rocksdb/rocksdb/utilities/transactions/snapshot_checker.cc +0 -16
  508. package/deps/rocksdb/rocksdb/utilities/transactions/timestamped_snapshot_test.cc +0 -9
  509. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_base.cc +0 -2
  510. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_base.h +0 -2
  511. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_db_mutex_impl.cc +0 -2
  512. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_db_mutex_impl.h +0 -2
  513. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_test.cc +102 -11
  514. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_util.cc +0 -2
  515. package/deps/rocksdb/rocksdb/utilities/transactions/transaction_util.h +0 -2
  516. package/deps/rocksdb/rocksdb/utilities/transactions/write_committed_transaction_ts_test.cc +0 -10
  517. package/deps/rocksdb/rocksdb/utilities/transactions/write_prepared_transaction_test.cc +0 -11
  518. package/deps/rocksdb/rocksdb/utilities/transactions/write_prepared_txn.cc +0 -2
  519. package/deps/rocksdb/rocksdb/utilities/transactions/write_prepared_txn.h +0 -2
  520. package/deps/rocksdb/rocksdb/utilities/transactions/write_prepared_txn_db.cc +0 -2
  521. package/deps/rocksdb/rocksdb/utilities/transactions/write_prepared_txn_db.h +0 -2
  522. package/deps/rocksdb/rocksdb/utilities/transactions/write_unprepared_transaction_test.cc +0 -11
  523. package/deps/rocksdb/rocksdb/utilities/transactions/write_unprepared_txn.cc +0 -2
  524. package/deps/rocksdb/rocksdb/utilities/transactions/write_unprepared_txn.h +0 -2
  525. package/deps/rocksdb/rocksdb/utilities/transactions/write_unprepared_txn_db.cc +0 -2
  526. package/deps/rocksdb/rocksdb/utilities/transactions/write_unprepared_txn_db.h +0 -2
  527. package/deps/rocksdb/rocksdb/utilities/ttl/db_ttl_impl.cc +0 -2
  528. package/deps/rocksdb/rocksdb/utilities/ttl/db_ttl_impl.h +0 -2
  529. package/deps/rocksdb/rocksdb/utilities/ttl/ttl_test.cc +0 -10
  530. package/deps/rocksdb/rocksdb/utilities/wal_filter.cc +1 -2
  531. package/deps/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index.cc +2 -3
  532. package/deps/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc +0 -2
  533. package/deps/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.h +0 -2
  534. package/deps/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_test.cc +0 -10
  535. package/package.json +2 -2
  536. package/{deps/rocksdb/rocksdb/prebuilds → prebuilds}/linux-x64/node.napi.node +0 -0
@@ -53,20 +53,13 @@ struct Options;
53
53
  struct ReadOptions;
54
54
  struct TableProperties;
55
55
  struct WriteOptions;
56
- #ifdef ROCKSDB_LITE
57
- class CompactionJobInfo;
58
- #endif
59
56
  class Env;
60
57
  class EventListener;
61
58
  class FileSystem;
62
- #ifndef ROCKSDB_LITE
63
59
  class Replayer;
64
- #endif
65
60
  class StatsHistoryIterator;
66
- #ifndef ROCKSDB_LITE
67
61
  class TraceReader;
68
62
  class TraceWriter;
69
- #endif
70
63
  class WriteBatch;
71
64
 
72
65
  extern const std::string kDefaultColumnFamilyName;
@@ -197,8 +190,6 @@ class DB {
197
190
 
198
191
  // Open the database for read only.
199
192
  //
200
- // Not supported in ROCKSDB_LITE, in which case the function will
201
- // return Status::NotSupported.
202
193
  static Status OpenForReadOnly(const Options& options, const std::string& name,
203
194
  DB** dbptr,
204
195
  bool error_if_wal_file_exists = false);
@@ -210,8 +201,6 @@ class DB {
210
201
  // to specify default column family. The default column family name is
211
202
  // 'default' and it's stored in ROCKSDB_NAMESPACE::kDefaultColumnFamilyName
212
203
  //
213
- // Not supported in ROCKSDB_LITE, in which case the function will
214
- // return Status::NotSupported.
215
204
  static Status OpenForReadOnly(
216
205
  const DBOptions& db_options, const std::string& name,
217
206
  const std::vector<ColumnFamilyDescriptor>& column_families,
@@ -780,6 +769,68 @@ class DB {
780
769
  }
781
770
  }
782
771
 
772
+ // Batched MultiGet-like API that returns wide-column entities from a single
773
+ // column family. For any given "key[i]" in "keys" (where 0 <= "i" <
774
+ // "num_keys"), if the column family specified by "column_family" contains an
775
+ // entry, it is returned it as a wide-column entity in "results[i]". If the
776
+ // entry is a wide-column entity, it is returned as-is; if it is a plain
777
+ // key-value, it is returned as an entity with a single anonymous column (see
778
+ // kDefaultWideColumnName) which contains the value.
779
+ //
780
+ // "statuses[i]" is set to OK if "keys[i]" is successfully retrieved. It is
781
+ // set to NotFound and an empty wide-column entity is returned in "results[i]"
782
+ // if there is no entry for "keys[i]". Finally, "statuses[i]" is set to some
783
+ // other non-OK status on error.
784
+ //
785
+ // If "keys" are sorted according to the column family's comparator, the
786
+ // "sorted_input" flag can be set for a small performance improvement.
787
+ //
788
+ // Note that it is the caller's responsibility to ensure that "keys",
789
+ // "results", and "statuses" point to "num_keys" number of contiguous objects
790
+ // (Slices, PinnableWideColumns, and Statuses respectively).
791
+ virtual void MultiGetEntity(const ReadOptions& /* options */,
792
+ ColumnFamilyHandle* /* column_family */,
793
+ size_t num_keys, const Slice* /* keys */,
794
+ PinnableWideColumns* /* results */,
795
+ Status* statuses,
796
+ bool /* sorted_input */ = false) {
797
+ for (size_t i = 0; i < num_keys; ++i) {
798
+ statuses[i] = Status::NotSupported("MultiGetEntity not supported");
799
+ }
800
+ }
801
+
802
+ // Batched MultiGet-like API that returns wide-column entities potentially
803
+ // from multiple column families. For any given "key[i]" in "keys" (where 0 <=
804
+ // "i" < "num_keys"), if the column family specified by "column_families[i]"
805
+ // contains an entry, it is returned it as a wide-column entity in
806
+ // "results[i]". If the entry is a wide-column entity, it is returned as-is;
807
+ // if it is a plain key-value, it is returned as an entity with a single
808
+ // anonymous column (see kDefaultWideColumnName) which contains the value.
809
+ //
810
+ // "statuses[i]" is set to OK if "keys[i]" is successfully retrieved. It is
811
+ // set to NotFound and an empty wide-column entity is returned in "results[i]"
812
+ // if there is no entry for "keys[i]". Finally, "statuses[i]" is set to some
813
+ // other non-OK status on error.
814
+ //
815
+ // If "keys" are sorted by column family id and within each column family,
816
+ // according to the column family's comparator, the "sorted_input" flag can be
817
+ // set for a small performance improvement.
818
+ //
819
+ // Note that it is the caller's responsibility to ensure that
820
+ // "column_families", "keys", "results", and "statuses" point to "num_keys"
821
+ // number of contiguous objects (ColumnFamilyHandle pointers, Slices,
822
+ // PinnableWideColumns, and Statuses respectively).
823
+ virtual void MultiGetEntity(const ReadOptions& /* options */, size_t num_keys,
824
+ ColumnFamilyHandle** /* column_families */,
825
+ const Slice* /* keys */,
826
+ PinnableWideColumns* /* results */,
827
+ Status* statuses,
828
+ bool /* sorted_input */ = false) {
829
+ for (size_t i = 0; i < num_keys; ++i) {
830
+ statuses[i] = Status::NotSupported("MultiGetEntity not supported");
831
+ }
832
+ }
833
+
783
834
  // If the key definitely does not exist in the database, then this method
784
835
  // returns false, else true. If the caller wants to obtain value when the key
785
836
  // is found in memory, a bool for 'value_found' must be passed. 'value_found'
@@ -849,7 +900,6 @@ class DB {
849
900
  // use "snapshot" after this call.
850
901
  virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0;
851
902
 
852
- #ifndef ROCKSDB_LITE
853
903
  // Contains all valid property arguments for GetProperty() or
854
904
  // GetMapProperty(). Each is a "string" property for retrieval with
855
905
  // GetProperty() unless noted as a "map" property, for GetMapProperty().
@@ -1115,7 +1165,6 @@ class DB {
1115
1165
  // entries being pinned in blob cache.
1116
1166
  static const std::string kBlobCachePinnedUsage;
1117
1167
  };
1118
- #endif /* ROCKSDB_LITE */
1119
1168
 
1120
1169
  // DB implementations export properties about their state via this method.
1121
1170
  // If "property" is a valid "string" property understood by this DB
@@ -1413,7 +1462,7 @@ class DB {
1413
1462
 
1414
1463
  virtual DBOptions GetDBOptions() const = 0;
1415
1464
 
1416
- // Flush all mem-table data.
1465
+ // Flush all memtable data.
1417
1466
  // Flush a single column family, even when atomic flush is enabled. To flush
1418
1467
  // multiple column families, use Flush(options, column_families).
1419
1468
  virtual Status Flush(const FlushOptions& options,
@@ -1421,7 +1470,7 @@ class DB {
1421
1470
  virtual Status Flush(const FlushOptions& options) {
1422
1471
  return Flush(options, DefaultColumnFamily());
1423
1472
  }
1424
- // Flushes multiple column families.
1473
+ // Flushes memtables of multiple column families.
1425
1474
  // If atomic flush is not enabled, Flush(options, column_families) is
1426
1475
  // equivalent to calling Flush(options, column_family) multiple times.
1427
1476
  // If atomic flush is enabled, Flush(options, column_families) will flush all
@@ -1433,29 +1482,41 @@ class DB {
1433
1482
  const FlushOptions& options,
1434
1483
  const std::vector<ColumnFamilyHandle*>& column_families) = 0;
1435
1484
 
1436
- // Flush the WAL memory buffer to the file. If sync is true, it calls SyncWAL
1437
- // afterwards.
1485
+ // When using the manual_wal_flush option, flushes RocksDB internal buffers
1486
+ // of WAL data to the file, so that the data can survive process crash or be
1487
+ // included in a Checkpoint or Backup. Without manual_wal_flush, there is no
1488
+ // such internal buffer. If sync is true, it calls SyncWAL() afterwards.
1438
1489
  virtual Status FlushWAL(bool /*sync*/) {
1439
1490
  return Status::NotSupported("FlushWAL not implemented");
1440
1491
  }
1441
- // Sync the wal. Note that Write() followed by SyncWAL() is not exactly the
1442
- // same as Write() with sync=true: in the latter case the changes won't be
1443
- // visible until the sync is done.
1444
- // Currently only works if allow_mmap_writes = false in Options.
1492
+
1493
+ // Ensure all WAL writes have been synced to storage, so that (assuming OS
1494
+ // and hardware support) data will survive power loss. This function does
1495
+ // not imply FlushWAL, so `FlushWAL(true)` is recommended if using
1496
+ // manual_wal_flush=true. Currently only works if allow_mmap_writes = false
1497
+ // in Options.
1498
+ //
1499
+ // Note that Write() followed by SyncWAL() is not exactly the same as Write()
1500
+ // with sync=true: in the latter case the changes won't be visible until the
1501
+ // sync is done.
1445
1502
  virtual Status SyncWAL() = 0;
1446
1503
 
1447
- // Lock the WAL. Also flushes the WAL after locking.
1448
- // After this method returns ok, writes to the database will be stopped until
1449
- // UnlockWAL() is called.
1450
- // This method may internally acquire and release DB mutex and the WAL write
1451
- // mutex, but after it returns, neither mutex is held by caller.
1504
+ // Freezes the logical state of the DB (by stopping writes), and if WAL is
1505
+ // enabled, ensures that state has been flushed to DB files (as in
1506
+ // FlushWAL()). This can be used for taking a Checkpoint at a known DB
1507
+ // state, though the user must use options to insure no DB flush is invoked
1508
+ // in this frozen state. Other operations allowed on a "read only" DB should
1509
+ // work while frozen. Each LockWAL() call that returns OK must eventually be
1510
+ // followed by a corresponding call to UnlockWAL(). Where supported, non-OK
1511
+ // status is generally only possible with some kind of corruption or I/O
1512
+ // error.
1452
1513
  virtual Status LockWAL() {
1453
1514
  return Status::NotSupported("LockWAL not implemented");
1454
1515
  }
1455
1516
 
1456
- // Unlock the WAL.
1457
- // The write stop on the database will be cleared.
1458
- // This method may internally acquire and release DB mutex.
1517
+ // Unfreeze the DB state from a successful LockWAL().
1518
+ // The write stop on the database will be cleared when UnlockWAL() have been
1519
+ // called for each successful LockWAL().
1459
1520
  virtual Status UnlockWAL() {
1460
1521
  return Status::NotSupported("UnlockWAL not implemented");
1461
1522
  }
@@ -1490,7 +1551,6 @@ class DB {
1490
1551
  // threads call EnableFileDeletions()
1491
1552
  virtual Status EnableFileDeletions(bool force = true) = 0;
1492
1553
 
1493
- #ifndef ROCKSDB_LITE
1494
1554
  // Retrieves the creation time of the oldest file in the DB.
1495
1555
  // This API only works if max_open_files = -1, if it is not then
1496
1556
  // Status returned is Status::NotSupported()
@@ -1690,7 +1750,6 @@ class DB {
1690
1750
 
1691
1751
  virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); }
1692
1752
 
1693
- #endif // ROCKSDB_LITE
1694
1753
 
1695
1754
  // Returns the unique ID which is read from IDENTITY file during the opening
1696
1755
  // of database by setting in the identity variable
@@ -1707,7 +1766,6 @@ class DB {
1707
1766
  // Returns default column family handle
1708
1767
  virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0;
1709
1768
 
1710
- #ifndef ROCKSDB_LITE
1711
1769
 
1712
1770
  virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family,
1713
1771
  TablePropertiesCollection* props) = 0;
@@ -1774,7 +1832,6 @@ class DB {
1774
1832
  return Status::NotSupported("NewDefaultReplayer() is not implemented.");
1775
1833
  }
1776
1834
 
1777
- #endif // ROCKSDB_LITE
1778
1835
 
1779
1836
  // Needed for StackableDB
1780
1837
  virtual DB* GetRootDB() { return this; }
@@ -1788,7 +1845,6 @@ class DB {
1788
1845
  return Status::NotSupported("GetStatsHistory() is not implemented.");
1789
1846
  }
1790
1847
 
1791
- #ifndef ROCKSDB_LITE
1792
1848
  // Make the secondary instance catch up with the primary by tailing and
1793
1849
  // replaying the MANIFEST and WAL of the primary.
1794
1850
  // Column families created by the primary after the secondary instance starts
@@ -1802,7 +1858,6 @@ class DB {
1802
1858
  virtual Status TryCatchUpWithPrimary() {
1803
1859
  return Status::NotSupported("Supported only by secondary instance");
1804
1860
  }
1805
- #endif // !ROCKSDB_LITE
1806
1861
  };
1807
1862
 
1808
1863
  // Overloaded operators for enum class SizeApproximationFlags.
@@ -1837,7 +1892,6 @@ Status DestroyDB(const std::string& name, const Options& options,
1837
1892
  const std::vector<ColumnFamilyDescriptor>& column_families =
1838
1893
  std::vector<ColumnFamilyDescriptor>());
1839
1894
 
1840
- #ifndef ROCKSDB_LITE
1841
1895
  // If a DB cannot be opened, you may attempt to call this method to
1842
1896
  // resurrect as much of the contents of the database as possible.
1843
1897
  // Some data may be lost, so be careful when calling this function
@@ -1860,6 +1914,5 @@ Status RepairDB(const std::string& dbname, const DBOptions& db_options,
1860
1914
  // families encountered during the repair
1861
1915
  Status RepairDB(const std::string& dbname, const Options& options);
1862
1916
 
1863
- #endif
1864
1917
 
1865
1918
  } // namespace ROCKSDB_NAMESPACE
@@ -4,7 +4,6 @@
4
4
  // (found in the LICENSE.Apache file in the root directory).
5
5
 
6
6
  #pragma once
7
- #ifndef ROCKSDB_LITE
8
7
 
9
8
  #include <string>
10
9
 
@@ -42,4 +41,3 @@ class DbUndumpTool {
42
41
  ROCKSDB_NAMESPACE::Options options = ROCKSDB_NAMESPACE::Options());
43
42
  };
44
43
  } // namespace ROCKSDB_NAMESPACE
45
- #endif // ROCKSDB_LITE
@@ -27,6 +27,7 @@
27
27
 
28
28
  #include "rocksdb/customizable.h"
29
29
  #include "rocksdb/functor_wrapper.h"
30
+ #include "rocksdb/port_defs.h"
30
31
  #include "rocksdb/status.h"
31
32
  #include "rocksdb/thread_status.h"
32
33
 
@@ -69,13 +70,6 @@ struct ConfigOptions;
69
70
 
70
71
  const size_t kDefaultPageSize = 4 * 1024;
71
72
 
72
- enum class CpuPriority {
73
- kIdle = 0,
74
- kLow = 1,
75
- kNormal = 2,
76
- kHigh = 3,
77
- };
78
-
79
73
  // Options while opening a file to read/write
80
74
  struct EnvOptions {
81
75
  // Construct with default Options
@@ -179,17 +173,6 @@ class Env : public Customizable {
179
173
  // should implement this method.
180
174
  const char* Name() const override { return ""; }
181
175
 
182
- // Loads the environment specified by the input value into the result
183
- // The CreateFromString alternative should be used; this method may be
184
- // deprecated in a future release.
185
- static Status LoadEnv(const std::string& value, Env** result);
186
-
187
- // Loads the environment specified by the input value into the result
188
- // The CreateFromString alternative should be used; this method may be
189
- // deprecated in a future release.
190
- static Status LoadEnv(const std::string& value, Env** result,
191
- std::shared_ptr<Env>* guard);
192
-
193
176
  // Loads the environment specified by the input value into the result
194
177
  // @see Customizable for a more detailed description of the parameters and
195
178
  // return codes
@@ -1660,10 +1643,8 @@ class EnvWrapper : public Env {
1660
1643
  target_.env->SanitizeEnvOptions(env_opts);
1661
1644
  }
1662
1645
  Status PrepareOptions(const ConfigOptions& options) override;
1663
- #ifndef ROCKSDB_LITE
1664
1646
  std::string SerializeOptions(const ConfigOptions& config_options,
1665
1647
  const std::string& header) const override;
1666
- #endif // ROCKSDB_LITE
1667
1648
 
1668
1649
  private:
1669
1650
  Target target_;
@@ -5,7 +5,6 @@
5
5
 
6
6
  #pragma once
7
7
 
8
- #if !defined(ROCKSDB_LITE)
9
8
 
10
9
  #include <string>
11
10
 
@@ -462,4 +461,3 @@ class EncryptedFileSystem : public FileSystemWrapper {
462
461
  };
463
462
  } // namespace ROCKSDB_NAMESPACE
464
463
 
465
- #endif // !defined(ROCKSDB_LITE)
@@ -272,12 +272,6 @@ class FileSystem : public Customizable {
272
272
  static const char* Type() { return "FileSystem"; }
273
273
  static const char* kDefaultName() { return "DefaultFileSystem"; }
274
274
 
275
- // Loads the FileSystem specified by the input value into the result
276
- // The CreateFromString alternative should be used; this method may be
277
- // deprecated in a future release.
278
- static Status Load(const std::string& value,
279
- std::shared_ptr<FileSystem>* result);
280
-
281
275
  // Loads the FileSystem specified by the input value into the result
282
276
  // @see Customizable for a more detailed description of the parameters and
283
277
  // return codes
@@ -1516,10 +1510,8 @@ class FileSystemWrapper : public FileSystem {
1516
1510
 
1517
1511
  const Customizable* Inner() const override { return target_.get(); }
1518
1512
  Status PrepareOptions(const ConfigOptions& options) override;
1519
- #ifndef ROCKSDB_LITE
1520
1513
  std::string SerializeOptions(const ConfigOptions& config_options,
1521
1514
  const std::string& header) const override;
1522
- #endif // ROCKSDB_LITE
1523
1515
 
1524
1516
  virtual IOStatus Poll(std::vector<void*>& io_handles,
1525
1517
  size_t min_completions) override {
@@ -3,7 +3,6 @@
3
3
  // COPYING file in the root directory) and Apache 2.0 License
4
4
  // (found in the LICENSE.Apache file in the root directory).
5
5
  #pragma once
6
- #ifndef ROCKSDB_LITE
7
6
  #include <string>
8
7
  #include <vector>
9
8
 
@@ -41,4 +40,3 @@ class LDBTool {
41
40
 
42
41
  } // namespace ROCKSDB_NAMESPACE
43
42
 
44
- #endif // ROCKSDB_LITE
@@ -210,7 +210,6 @@ struct WriteStallInfo {
210
210
  } condition;
211
211
  };
212
212
 
213
- #ifndef ROCKSDB_LITE
214
213
 
215
214
  struct FileDeletionInfo {
216
215
  FileDeletionInfo() = default;
@@ -843,11 +842,5 @@ class EventListener : public Customizable {
843
842
  ~EventListener() override {}
844
843
  };
845
844
 
846
- #else
847
-
848
- class EventListener {};
849
- struct FlushJobInfo {};
850
-
851
- #endif // ROCKSDB_LITE
852
845
 
853
846
  } // namespace ROCKSDB_NAMESPACE
@@ -359,7 +359,6 @@ class SkipListFactory : public MemTableRepFactory {
359
359
  size_t lookahead_;
360
360
  };
361
361
 
362
- #ifndef ROCKSDB_LITE
363
362
  // This creates MemTableReps that are backed by an std::vector. On iteration,
364
363
  // the vector is sorted. This is useful for workloads where iteration is very
365
364
  // rare and writes are generally not issued after reads begin.
@@ -419,5 +418,4 @@ extern MemTableRepFactory* NewHashLinkListRepFactory(
419
418
  bool if_log_bucket_dist_when_flash = true,
420
419
  uint32_t threshold_use_skiplist = 256);
421
420
 
422
- #endif // ROCKSDB_LITE
423
421
  } // namespace ROCKSDB_NAMESPACE
@@ -82,7 +82,6 @@ struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions {
82
82
  // Use this if you don't need to keep the data sorted, i.e. you'll never use
83
83
  // an iterator, only Put() and Get() API calls
84
84
  //
85
- // Not supported in ROCKSDB_LITE
86
85
  ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb);
87
86
 
88
87
  // Default values for some parameters in ColumnFamilyOptions are not
@@ -99,8 +98,6 @@ struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions {
99
98
  // biggest performance gains.
100
99
  // Note: we might use more memory than memtable_memory_budget during high
101
100
  // write rate period
102
- //
103
- // OptimizeUniversalStyleCompaction is not supported in ROCKSDB_LITE
104
101
  ColumnFamilyOptions* OptimizeLevelStyleCompaction(
105
102
  uint64_t memtable_memory_budget = 512 * 1024 * 1024);
106
103
  ColumnFamilyOptions* OptimizeUniversalStyleCompaction(
@@ -464,14 +461,12 @@ struct DBOptions {
464
461
  // memtable to cost to
465
462
  DBOptions* OptimizeForSmallDb(std::shared_ptr<Cache>* cache = nullptr);
466
463
 
467
- #ifndef ROCKSDB_LITE
468
464
  // By default, RocksDB uses only one background thread for flush and
469
465
  // compaction. Calling this function will set it up such that total of
470
466
  // `total_threads` is used. Good value for `total_threads` is the number of
471
467
  // cores. You almost definitely want to call this function if your system is
472
468
  // bottlenecked by RocksDB.
473
469
  DBOptions* IncreaseParallelism(int total_threads = 16);
474
- #endif // ROCKSDB_LITE
475
470
 
476
471
  // If true, the database will be created if it is missing.
477
472
  // Default: false
@@ -762,7 +757,6 @@ struct DBOptions {
762
757
  // If specified with non-zero value, log file will be rolled
763
758
  // if it has been active longer than `log_file_time_to_roll`.
764
759
  // Default: 0 (disabled)
765
- // Not supported in ROCKSDB_LITE mode!
766
760
  size_t log_file_time_to_roll = 0;
767
761
 
768
762
  // Maximal info log files to be kept.
@@ -837,12 +831,10 @@ struct DBOptions {
837
831
 
838
832
  // Use O_DIRECT for user and compaction reads.
839
833
  // Default: false
840
- // Not supported in ROCKSDB_LITE mode!
841
834
  bool use_direct_reads = false;
842
835
 
843
836
  // Use O_DIRECT for writes in background flush and compactions.
844
837
  // Default: false
845
- // Not supported in ROCKSDB_LITE mode!
846
838
  bool use_direct_io_for_flush_and_compaction = false;
847
839
 
848
840
  // If false, fallocate() calls are bypassed, which disables file
@@ -1165,17 +1157,14 @@ struct DBOptions {
1165
1157
 
1166
1158
  // A global cache for table-level rows.
1167
1159
  // Default: nullptr (disabled)
1168
- // Not supported in ROCKSDB_LITE mode!
1169
1160
  std::shared_ptr<Cache> row_cache = nullptr;
1170
1161
 
1171
- #ifndef ROCKSDB_LITE
1172
1162
  // A filter object supplied to be invoked while processing write-ahead-logs
1173
1163
  // (WALs) during recovery. The filter provides a way to inspect log
1174
1164
  // records, ignoring a particular record or skipping replay.
1175
1165
  // The filter is invoked at startup and is invoked from a single-thread
1176
1166
  // currently.
1177
1167
  WalFilter* wal_filter = nullptr;
1178
- #endif // ROCKSDB_LITE
1179
1168
 
1180
1169
  // If true, then DB::Open / CreateColumnFamily / DropColumnFamily
1181
1170
  // SetOptions will fail if options file is not properly persisted.
@@ -1212,7 +1201,10 @@ struct DBOptions {
1212
1201
  // Setting this option to true will affect 2 things:
1213
1202
  // 1) Disable some internal optimizations around SST file compression
1214
1203
  // 2) Reserve bottom-most level for ingested files only.
1215
- // 3) Note that num_levels should be >= 3 if this option is turned on.
1204
+ // Note that only universal compaction supports reserving last level
1205
+ // for file ingestion only.
1206
+ // `num_levels` should be >= 3 if this option is turned on.
1207
+ //
1216
1208
  //
1217
1209
  // DEFAULT: false
1218
1210
  // Immutable.
@@ -1285,36 +1277,36 @@ struct DBOptions {
1285
1277
  // Default: nullptr
1286
1278
  std::shared_ptr<FileChecksumGenFactory> file_checksum_gen_factory = nullptr;
1287
1279
 
1288
- // By default, RocksDB recovery fails if any table/blob file referenced in the
1289
- // final version reconstructed from the
1290
- // MANIFEST are missing after scanning the MANIFEST pointed to by the
1291
- // CURRENT file. It can also fail if verification of unique SST id fails.
1292
- // Best-efforts recovery is another recovery mode that does not necessarily
1293
- // fail when certain table/blob files are missing/corrupted or have mismatched
1294
- // unique id table property. Instead, best-efforts recovery recovers each
1295
- // column family to a point in the MANIFEST that corresponds to a version. In
1296
- // such a version, all valid table/blob files referenced have the expected
1297
- // file size. For table files, their unique id table property match the
1298
- // MANIFEST.
1299
- //
1300
- // Best-efforts recovery does not need a valid CURRENT file, and tries to
1301
- // recover the database using one of the available MANIFEST files in the db
1302
- // directory.
1303
- // Best-efforts recovery tries the available MANIFEST files from high file
1304
- // numbers (newer) to low file numbers (older), and stops after finding the
1305
- // first MANIFEST file from which the db can be recovered to a state without
1306
- // invalid (missing/filesize-mismatch/unique-id-mismatch) table and blob
1307
- // files. It is possible that the database can be restored to an empty state
1308
- // with no table or blob files.
1309
- //
1310
- // Regardless of this option, the IDENTITY file
1311
- // is updated if needed during recovery to match the DB ID in the MANIFEST (if
1312
- // previously using write_dbid_to_manifest) or to be in some valid state
1313
- // (non-empty DB ID). Currently, not compatible with atomic flush.
1314
- // Furthermore, WAL files will not be used for recovery if
1315
- // best_efforts_recovery is true. Also requires either 1) LOCK file exists or
1316
- // 2) underlying env's LockFile() call returns ok even for non-existing LOCK
1317
- // file.
1280
+ // By default, RocksDB will attempt to detect any data losses or corruptions
1281
+ // in DB files and return an error to the user, either at DB::Open time or
1282
+ // later during DB operation. The exception to this policy is the WAL file,
1283
+ // whose recovery is controlled by the wal_recovery_mode option.
1284
+ //
1285
+ // Best-efforts recovery (this option set to true) signals a preference for
1286
+ // opening the DB to any point-in-time valid state for each column family,
1287
+ // including the empty/new state, versus the default of returning non-WAL
1288
+ // data losses to the user as errors. In terms of RocksDB user data, this
1289
+ // is like applying WALRecoveryMode::kPointInTimeRecovery to each column
1290
+ // family rather than just the WAL.
1291
+ //
1292
+ // Best-efforts recovery (BER) is specifically designed to recover a DB with
1293
+ // files that are missing or truncated to some smaller size, such as the
1294
+ // result of an incomplete DB "physical" (FileSystem) copy. BER can also
1295
+ // detect when an SST file has been replaced with a different one of the
1296
+ // same size (assuming SST unique IDs are tracked in DB manifest).
1297
+ // BER is not yet designed to produce a usable DB from other corruptions to
1298
+ // DB files (which should generally be detectable by DB::VerifyChecksum()),
1299
+ // and BER does not yet attempt to recover any WAL files.
1300
+ //
1301
+ // For example, if an SST or blob file referenced by the MANIFEST is missing,
1302
+ // BER might be able to find a set of files corresponding to an old "point in
1303
+ // time" version of the column family, possibly from an older MANIFEST
1304
+ // file. Some other kinds of DB files (e.g. CURRENT, LOCK, IDENTITY) are
1305
+ // either ignored or replaced with BER, or quietly fixed regardless of BER
1306
+ // setting. BER does require at least one valid MANIFEST to recover to a
1307
+ // non-trivial DB state, unlike `ldb repair`.
1308
+ //
1309
+ // Currently, best_efforts_recovery=true is not compatible with atomic flush.
1318
1310
  //
1319
1311
  // Default: false
1320
1312
  bool best_efforts_recovery = false;
@@ -1548,7 +1540,6 @@ struct ReadOptions {
1548
1540
  // added data) and is optimized for sequential reads. It will return records
1549
1541
  // that were inserted into the database after the creation of the iterator.
1550
1542
  // Default: false
1551
- // Not supported in ROCKSDB_LITE mode!
1552
1543
  bool tailing;
1553
1544
 
1554
1545
  // This options is not used anymore. It was to turn on a functionality that
@@ -1566,8 +1557,6 @@ struct ReadOptions {
1566
1557
  // When true, by default use total_order_seek = true, and RocksDB can
1567
1558
  // selectively enable prefix seek mode if won't generate a different result
1568
1559
  // from total_order_seek, based on seek key, and iterator upper bound.
1569
- // Not supported in ROCKSDB_LITE mode, in the way that even with value true
1570
- // prefix mode is not used.
1571
1560
  // BUG: Using Comparator::IsSameLengthImmediateSuccessor and
1572
1561
  // SliceTransform::FullLengthEnabled to enable prefix mode in cases where
1573
1562
  // prefix of upper bound differs from prefix of seek key has a flaw.
@@ -1934,7 +1923,8 @@ struct IngestExternalFileOptions {
1934
1923
  bool snapshot_consistency = true;
1935
1924
  // If set to false, IngestExternalFile() will fail if the file key range
1936
1925
  // overlaps with existing keys or tombstones or output of ongoing compaction
1937
- // during file ingestion in the DB.
1926
+ // during file ingestion in the DB (the conditions under which a global_seqno
1927
+ // must be assigned to the ingested file).
1938
1928
  bool allow_global_seqno = true;
1939
1929
  // If set to false and the file key range overlaps with the memtable key range
1940
1930
  // (memtable flush required), IngestExternalFile will fail.
@@ -1947,18 +1937,14 @@ struct IngestExternalFileOptions {
1947
1937
  // with allow_ingest_behind=true since the dawn of time.
1948
1938
  // All files will be ingested at the bottommost level with seqno=0.
1949
1939
  bool ingest_behind = false;
1950
- // Set to true if you would like to write global_seqno to a given offset in
1951
- // the external SST file for backward compatibility. Older versions of
1952
- // RocksDB writes a global_seqno to a given offset within ingested SST files,
1953
- // and new versions of RocksDB do not. If you ingest an external SST using
1954
- // new version of RocksDB and would like to be able to downgrade to an
1955
- // older version of RocksDB, you should set 'write_global_seqno' to true. If
1956
- // your service is just starting to use the new RocksDB, we recommend that
1957
- // you set this option to false, which brings two benefits:
1958
- // 1. No extra random write for global_seqno during ingestion.
1959
- // 2. Without writing external SST file, it's possible to do checksum.
1960
- // We have a plan to set this option to false by default in the future.
1961
- bool write_global_seqno = true;
1940
+ // DEPRECATED - Set to true if you would like to write global_seqno to
1941
+ // the external SST file on ingestion for backward compatibility before
1942
+ // RocksDB 5.16.0. Such old versions of RocksDB expect any global_seqno to
1943
+ // be written to the SST file rather than recorded in the DB manifest.
1944
+ // This functionality was deprecated because (a) random writes might be
1945
+ // costly or unsupported on some FileSystems, and (b) the file checksum
1946
+ // changes with such a write.
1947
+ bool write_global_seqno = false;
1962
1948
  // Set to true if you would like to verify the checksums of each block of the
1963
1949
  // external SST file before ingestion.
1964
1950
  // Warning: setting this to true causes slowdown in file ingestion because
@@ -2100,7 +2086,6 @@ struct OpenAndCompactOptions {
2100
2086
  std::atomic<bool>* canceled = nullptr;
2101
2087
  };
2102
2088
 
2103
- #ifndef ROCKSDB_LITE
2104
2089
  struct LiveFilesStorageInfoOptions {
2105
2090
  // Whether to populate FileStorageInfo::file_checksum* or leave blank
2106
2091
  bool include_checksum_info = false;
@@ -2109,6 +2094,5 @@ struct LiveFilesStorageInfoOptions {
2109
2094
  // Default: always force a flush without checking sizes.
2110
2095
  uint64_t wal_size_for_flush = 0;
2111
2096
  };
2112
- #endif // !ROCKSDB_LITE
2113
2097
 
2114
2098
  } // namespace ROCKSDB_NAMESPACE
@@ -0,0 +1,22 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
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
+ // This file includes the common definitions used in the port/,
7
+ // the public API (this directory), and other directories
8
+
9
+ #pragma once
10
+
11
+ #include "rocksdb/rocksdb_namespace.h"
12
+
13
+ namespace ROCKSDB_NAMESPACE {
14
+
15
+ enum class CpuPriority {
16
+ kIdle = 0,
17
+ kLow = 1,
18
+ kNormal = 2,
19
+ kHigh = 3,
20
+ };
21
+
22
+ } // namespace ROCKSDB_NAMESPACE