rocksdb-native 2.6.2 → 2.6.4

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 (956) hide show
  1. package/CMakeLists.txt +29 -17
  2. package/binding.js +1 -1
  3. package/package.json +7 -4
  4. package/prebuilds/darwin-arm64/rocksdb-native.bare +0 -0
  5. package/prebuilds/darwin-arm64/rocksdb-native.node +0 -0
  6. package/prebuilds/darwin-x64/rocksdb-native.bare +0 -0
  7. package/prebuilds/darwin-x64/rocksdb-native.node +0 -0
  8. package/prebuilds/ios-arm64/rocksdb-native.bare +0 -0
  9. package/prebuilds/ios-arm64-simulator/rocksdb-native.bare +0 -0
  10. package/prebuilds/ios-x64-simulator/rocksdb-native.bare +0 -0
  11. package/prebuilds/linux-arm64/rocksdb-native.bare +0 -0
  12. package/prebuilds/linux-arm64/rocksdb-native.node +0 -0
  13. package/prebuilds/linux-x64/rocksdb-native.bare +0 -0
  14. package/prebuilds/linux-x64/rocksdb-native.node +0 -0
  15. package/prebuilds/win32-arm64/rocksdb-native.bare +0 -0
  16. package/prebuilds/win32-arm64/rocksdb-native.node +0 -0
  17. package/prebuilds/win32-x64/rocksdb-native.bare +0 -0
  18. package/prebuilds/win32-x64/rocksdb-native.node +0 -0
  19. package/vendor/librocksdb/CMakeLists.txt +0 -94
  20. package/vendor/librocksdb/LICENSE +0 -201
  21. package/vendor/librocksdb/NOTICE +0 -13
  22. package/vendor/librocksdb/README.md +0 -11
  23. package/vendor/librocksdb/include/rocksdb.h +0 -294
  24. package/vendor/librocksdb/src/rocksdb.cc +0 -714
  25. package/vendor/librocksdb/vendor/rocksdb/CMakeLists.txt +0 -1642
  26. package/vendor/librocksdb/vendor/rocksdb/cache/cache.cc +0 -193
  27. package/vendor/librocksdb/vendor/rocksdb/cache/cache_bench.cc +0 -20
  28. package/vendor/librocksdb/vendor/rocksdb/cache/cache_bench_tool.cc +0 -1177
  29. package/vendor/librocksdb/vendor/rocksdb/cache/cache_entry_roles.cc +0 -104
  30. package/vendor/librocksdb/vendor/rocksdb/cache/cache_entry_roles.h +0 -20
  31. package/vendor/librocksdb/vendor/rocksdb/cache/cache_entry_stats.h +0 -182
  32. package/vendor/librocksdb/vendor/rocksdb/cache/cache_helpers.cc +0 -41
  33. package/vendor/librocksdb/vendor/rocksdb/cache/cache_helpers.h +0 -139
  34. package/vendor/librocksdb/vendor/rocksdb/cache/cache_key.cc +0 -364
  35. package/vendor/librocksdb/vendor/rocksdb/cache/cache_key.h +0 -143
  36. package/vendor/librocksdb/vendor/rocksdb/cache/cache_reservation_manager.cc +0 -184
  37. package/vendor/librocksdb/vendor/rocksdb/cache/cache_reservation_manager.h +0 -318
  38. package/vendor/librocksdb/vendor/rocksdb/cache/charged_cache.cc +0 -111
  39. package/vendor/librocksdb/vendor/rocksdb/cache/charged_cache.h +0 -61
  40. package/vendor/librocksdb/vendor/rocksdb/cache/clock_cache.cc +0 -3657
  41. package/vendor/librocksdb/vendor/rocksdb/cache/clock_cache.h +0 -1165
  42. package/vendor/librocksdb/vendor/rocksdb/cache/compressed_secondary_cache.cc +0 -414
  43. package/vendor/librocksdb/vendor/rocksdb/cache/compressed_secondary_cache.h +0 -151
  44. package/vendor/librocksdb/vendor/rocksdb/cache/lru_cache.cc +0 -726
  45. package/vendor/librocksdb/vendor/rocksdb/cache/lru_cache.h +0 -467
  46. package/vendor/librocksdb/vendor/rocksdb/cache/secondary_cache.cc +0 -12
  47. package/vendor/librocksdb/vendor/rocksdb/cache/secondary_cache_adapter.cc +0 -743
  48. package/vendor/librocksdb/vendor/rocksdb/cache/secondary_cache_adapter.h +0 -103
  49. package/vendor/librocksdb/vendor/rocksdb/cache/sharded_cache.cc +0 -147
  50. package/vendor/librocksdb/vendor/rocksdb/cache/sharded_cache.h +0 -322
  51. package/vendor/librocksdb/vendor/rocksdb/cache/tiered_secondary_cache.cc +0 -125
  52. package/vendor/librocksdb/vendor/rocksdb/cache/tiered_secondary_cache.h +0 -158
  53. package/vendor/librocksdb/vendor/rocksdb/cache/typed_cache.h +0 -380
  54. package/vendor/librocksdb/vendor/rocksdb/cmake/RocksDBConfig.cmake.in +0 -54
  55. package/vendor/librocksdb/vendor/rocksdb/db/arena_wrapped_db_iter.cc +0 -182
  56. package/vendor/librocksdb/vendor/rocksdb/db/arena_wrapped_db_iter.h +0 -128
  57. package/vendor/librocksdb/vendor/rocksdb/db/attribute_group_iterator_impl.cc +0 -20
  58. package/vendor/librocksdb/vendor/rocksdb/db/attribute_group_iterator_impl.h +0 -83
  59. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_constants.h +0 -16
  60. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_contents.cc +0 -42
  61. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_contents.h +0 -60
  62. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_counting_iterator.h +0 -150
  63. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_fetcher.cc +0 -34
  64. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_fetcher.h +0 -37
  65. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_addition.cc +0 -156
  66. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_addition.h +0 -67
  67. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_builder.cc +0 -429
  68. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_builder.h +0 -113
  69. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_cache.cc +0 -101
  70. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_cache.h +0 -56
  71. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_completion_callback.h +0 -84
  72. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_garbage.cc +0 -134
  73. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_garbage.h +0 -57
  74. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_meta.cc +0 -62
  75. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_meta.h +0 -170
  76. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_reader.cc +0 -622
  77. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_file_reader.h +0 -111
  78. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_garbage_meter.cc +0 -100
  79. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_garbage_meter.h +0 -102
  80. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_index.h +0 -187
  81. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_log_format.cc +0 -143
  82. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_log_format.h +0 -164
  83. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_log_sequential_reader.cc +0 -133
  84. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_log_sequential_reader.h +0 -83
  85. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_log_writer.cc +0 -207
  86. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_log_writer.h +0 -87
  87. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_read_request.h +0 -58
  88. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_source.cc +0 -459
  89. package/vendor/librocksdb/vendor/rocksdb/db/blob/blob_source.h +0 -161
  90. package/vendor/librocksdb/vendor/rocksdb/db/blob/prefetch_buffer_collection.cc +0 -23
  91. package/vendor/librocksdb/vendor/rocksdb/db/blob/prefetch_buffer_collection.h +0 -38
  92. package/vendor/librocksdb/vendor/rocksdb/db/builder.cc +0 -517
  93. package/vendor/librocksdb/vendor/rocksdb/db/builder.h +0 -76
  94. package/vendor/librocksdb/vendor/rocksdb/db/c.cc +0 -7133
  95. package/vendor/librocksdb/vendor/rocksdb/db/c_test.c +0 -4052
  96. package/vendor/librocksdb/vendor/rocksdb/db/coalescing_iterator.cc +0 -47
  97. package/vendor/librocksdb/vendor/rocksdb/db/coalescing_iterator.h +0 -79
  98. package/vendor/librocksdb/vendor/rocksdb/db/column_family.cc +0 -1859
  99. package/vendor/librocksdb/vendor/rocksdb/db/column_family.h +0 -918
  100. package/vendor/librocksdb/vendor/rocksdb/db/compaction/clipping_iterator.h +0 -281
  101. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction.cc +0 -995
  102. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction.h +0 -602
  103. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_iteration_stats.h +0 -56
  104. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_iterator.cc +0 -1523
  105. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_iterator.h +0 -557
  106. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_job.cc +0 -2155
  107. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_job.h +0 -520
  108. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_outputs.cc +0 -802
  109. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_outputs.h +0 -411
  110. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker.cc +0 -1245
  111. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker.h +0 -322
  112. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker_fifo.cc +0 -478
  113. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker_fifo.h +0 -61
  114. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker_level.cc +0 -977
  115. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker_level.h +0 -32
  116. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker_universal.cc +0 -1578
  117. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_picker_universal.h +0 -29
  118. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_service_job.cc +0 -835
  119. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_state.cc +0 -46
  120. package/vendor/librocksdb/vendor/rocksdb/db/compaction/compaction_state.h +0 -42
  121. package/vendor/librocksdb/vendor/rocksdb/db/compaction/file_pri.h +0 -94
  122. package/vendor/librocksdb/vendor/rocksdb/db/compaction/sst_partitioner.cc +0 -83
  123. package/vendor/librocksdb/vendor/rocksdb/db/compaction/subcompaction_state.cc +0 -106
  124. package/vendor/librocksdb/vendor/rocksdb/db/compaction/subcompaction_state.h +0 -220
  125. package/vendor/librocksdb/vendor/rocksdb/db/convenience.cc +0 -101
  126. package/vendor/librocksdb/vendor/rocksdb/db/convenience_impl.h +0 -15
  127. package/vendor/librocksdb/vendor/rocksdb/db/db_filesnapshot.cc +0 -506
  128. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/compacted_db_impl.cc +0 -275
  129. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/compacted_db_impl.h +0 -147
  130. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl.cc +0 -6767
  131. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl.h +0 -3056
  132. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_compaction_flush.cc +0 -4390
  133. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_debug.cc +0 -327
  134. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_experimental.cc +0 -164
  135. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_files.cc +0 -1032
  136. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_follower.cc +0 -348
  137. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_follower.h +0 -54
  138. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_open.cc +0 -2325
  139. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_readonly.cc +0 -376
  140. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_readonly.h +0 -179
  141. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_secondary.cc +0 -1025
  142. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_secondary.h +0 -322
  143. package/vendor/librocksdb/vendor/rocksdb/db/db_impl/db_impl_write.cc +0 -2624
  144. package/vendor/librocksdb/vendor/rocksdb/db/db_info_dumper.cc +0 -165
  145. package/vendor/librocksdb/vendor/rocksdb/db/db_info_dumper.h +0 -15
  146. package/vendor/librocksdb/vendor/rocksdb/db/db_iter.cc +0 -1774
  147. package/vendor/librocksdb/vendor/rocksdb/db/db_iter.h +0 -444
  148. package/vendor/librocksdb/vendor/rocksdb/db/db_test2.cc +0 -7839
  149. package/vendor/librocksdb/vendor/rocksdb/db/db_test_util.cc +0 -1800
  150. package/vendor/librocksdb/vendor/rocksdb/db/db_test_util.h +0 -1427
  151. package/vendor/librocksdb/vendor/rocksdb/db/db_with_timestamp_test_util.cc +0 -96
  152. package/vendor/librocksdb/vendor/rocksdb/db/db_with_timestamp_test_util.h +0 -126
  153. package/vendor/librocksdb/vendor/rocksdb/db/dbformat.cc +0 -282
  154. package/vendor/librocksdb/vendor/rocksdb/db/dbformat.h +0 -1101
  155. package/vendor/librocksdb/vendor/rocksdb/db/error_handler.cc +0 -806
  156. package/vendor/librocksdb/vendor/rocksdb/db/error_handler.h +0 -149
  157. package/vendor/librocksdb/vendor/rocksdb/db/event_helpers.cc +0 -332
  158. package/vendor/librocksdb/vendor/rocksdb/db/event_helpers.h +0 -78
  159. package/vendor/librocksdb/vendor/rocksdb/db/experimental.cc +0 -1212
  160. package/vendor/librocksdb/vendor/rocksdb/db/external_sst_file_ingestion_job.cc +0 -1249
  161. package/vendor/librocksdb/vendor/rocksdb/db/external_sst_file_ingestion_job.h +0 -268
  162. package/vendor/librocksdb/vendor/rocksdb/db/file_indexer.cc +0 -216
  163. package/vendor/librocksdb/vendor/rocksdb/db/file_indexer.h +0 -140
  164. package/vendor/librocksdb/vendor/rocksdb/db/flush_job.cc +0 -1217
  165. package/vendor/librocksdb/vendor/rocksdb/db/flush_job.h +0 -240
  166. package/vendor/librocksdb/vendor/rocksdb/db/flush_scheduler.cc +0 -86
  167. package/vendor/librocksdb/vendor/rocksdb/db/flush_scheduler.h +0 -55
  168. package/vendor/librocksdb/vendor/rocksdb/db/forward_iterator.cc +0 -1082
  169. package/vendor/librocksdb/vendor/rocksdb/db/forward_iterator.h +0 -166
  170. package/vendor/librocksdb/vendor/rocksdb/db/forward_iterator_bench.cc +0 -378
  171. package/vendor/librocksdb/vendor/rocksdb/db/history_trimming_iterator.h +0 -95
  172. package/vendor/librocksdb/vendor/rocksdb/db/import_column_family_job.cc +0 -463
  173. package/vendor/librocksdb/vendor/rocksdb/db/import_column_family_job.h +0 -91
  174. package/vendor/librocksdb/vendor/rocksdb/db/internal_stats.cc +0 -2198
  175. package/vendor/librocksdb/vendor/rocksdb/db/internal_stats.h +0 -896
  176. package/vendor/librocksdb/vendor/rocksdb/db/job_context.h +0 -254
  177. package/vendor/librocksdb/vendor/rocksdb/db/kv_checksum.h +0 -484
  178. package/vendor/librocksdb/vendor/rocksdb/db/log_format.h +0 -55
  179. package/vendor/librocksdb/vendor/rocksdb/db/log_reader.cc +0 -958
  180. package/vendor/librocksdb/vendor/rocksdb/db/log_reader.h +0 -245
  181. package/vendor/librocksdb/vendor/rocksdb/db/log_writer.cc +0 -355
  182. package/vendor/librocksdb/vendor/rocksdb/db/log_writer.h +0 -151
  183. package/vendor/librocksdb/vendor/rocksdb/db/logs_with_prep_tracker.cc +0 -67
  184. package/vendor/librocksdb/vendor/rocksdb/db/logs_with_prep_tracker.h +0 -62
  185. package/vendor/librocksdb/vendor/rocksdb/db/lookup_key.h +0 -68
  186. package/vendor/librocksdb/vendor/rocksdb/db/malloc_stats.cc +0 -52
  187. package/vendor/librocksdb/vendor/rocksdb/db/malloc_stats.h +0 -22
  188. package/vendor/librocksdb/vendor/rocksdb/db/memtable.cc +0 -1684
  189. package/vendor/librocksdb/vendor/rocksdb/db/memtable.h +0 -712
  190. package/vendor/librocksdb/vendor/rocksdb/db/memtable_list.cc +0 -1028
  191. package/vendor/librocksdb/vendor/rocksdb/db/memtable_list.h +0 -514
  192. package/vendor/librocksdb/vendor/rocksdb/db/merge_context.h +0 -150
  193. package/vendor/librocksdb/vendor/rocksdb/db/merge_helper.cc +0 -699
  194. package/vendor/librocksdb/vendor/rocksdb/db/merge_helper.h +0 -318
  195. package/vendor/librocksdb/vendor/rocksdb/db/merge_operator.cc +0 -167
  196. package/vendor/librocksdb/vendor/rocksdb/db/multi_cf_iterator_impl.h +0 -296
  197. package/vendor/librocksdb/vendor/rocksdb/db/output_validator.cc +0 -29
  198. package/vendor/librocksdb/vendor/rocksdb/db/output_validator.h +0 -45
  199. package/vendor/librocksdb/vendor/rocksdb/db/periodic_task_scheduler.cc +0 -110
  200. package/vendor/librocksdb/vendor/rocksdb/db/periodic_task_scheduler.h +0 -108
  201. package/vendor/librocksdb/vendor/rocksdb/db/pinned_iterators_manager.h +0 -92
  202. package/vendor/librocksdb/vendor/rocksdb/db/post_memtable_callback.h +0 -25
  203. package/vendor/librocksdb/vendor/rocksdb/db/pre_release_callback.h +0 -37
  204. package/vendor/librocksdb/vendor/rocksdb/db/range_del_aggregator.cc +0 -553
  205. package/vendor/librocksdb/vendor/rocksdb/db/range_del_aggregator.h +0 -481
  206. package/vendor/librocksdb/vendor/rocksdb/db/range_del_aggregator_bench.cc +0 -280
  207. package/vendor/librocksdb/vendor/rocksdb/db/range_tombstone_fragmenter.cc +0 -515
  208. package/vendor/librocksdb/vendor/rocksdb/db/range_tombstone_fragmenter.h +0 -361
  209. package/vendor/librocksdb/vendor/rocksdb/db/read_callback.h +0 -54
  210. package/vendor/librocksdb/vendor/rocksdb/db/repair.cc +0 -864
  211. package/vendor/librocksdb/vendor/rocksdb/db/seqno_to_time_mapping.cc +0 -573
  212. package/vendor/librocksdb/vendor/rocksdb/db/seqno_to_time_mapping.h +0 -307
  213. package/vendor/librocksdb/vendor/rocksdb/db/snapshot_checker.h +0 -58
  214. package/vendor/librocksdb/vendor/rocksdb/db/snapshot_impl.cc +0 -25
  215. package/vendor/librocksdb/vendor/rocksdb/db/snapshot_impl.h +0 -239
  216. package/vendor/librocksdb/vendor/rocksdb/db/table_cache.cc +0 -745
  217. package/vendor/librocksdb/vendor/rocksdb/db/table_cache.h +0 -298
  218. package/vendor/librocksdb/vendor/rocksdb/db/table_cache_sync_and_async.h +0 -135
  219. package/vendor/librocksdb/vendor/rocksdb/db/table_properties_collector.cc +0 -74
  220. package/vendor/librocksdb/vendor/rocksdb/db/table_properties_collector.h +0 -185
  221. package/vendor/librocksdb/vendor/rocksdb/db/transaction_log_impl.cc +0 -296
  222. package/vendor/librocksdb/vendor/rocksdb/db/transaction_log_impl.h +0 -128
  223. package/vendor/librocksdb/vendor/rocksdb/db/trim_history_scheduler.cc +0 -54
  224. package/vendor/librocksdb/vendor/rocksdb/db/trim_history_scheduler.h +0 -46
  225. package/vendor/librocksdb/vendor/rocksdb/db/version_builder.cc +0 -1431
  226. package/vendor/librocksdb/vendor/rocksdb/db/version_builder.h +0 -93
  227. package/vendor/librocksdb/vendor/rocksdb/db/version_edit.cc +0 -1119
  228. package/vendor/librocksdb/vendor/rocksdb/db/version_edit.h +0 -769
  229. package/vendor/librocksdb/vendor/rocksdb/db/version_edit_handler.cc +0 -1264
  230. package/vendor/librocksdb/vendor/rocksdb/db/version_edit_handler.h +0 -390
  231. package/vendor/librocksdb/vendor/rocksdb/db/version_set.cc +0 -7562
  232. package/vendor/librocksdb/vendor/rocksdb/db/version_set.h +0 -1799
  233. package/vendor/librocksdb/vendor/rocksdb/db/version_set_sync_and_async.h +0 -169
  234. package/vendor/librocksdb/vendor/rocksdb/db/version_util.h +0 -77
  235. package/vendor/librocksdb/vendor/rocksdb/db/wal_edit.cc +0 -211
  236. package/vendor/librocksdb/vendor/rocksdb/db/wal_edit.h +0 -177
  237. package/vendor/librocksdb/vendor/rocksdb/db/wal_manager.cc +0 -539
  238. package/vendor/librocksdb/vendor/rocksdb/db/wal_manager.h +0 -138
  239. package/vendor/librocksdb/vendor/rocksdb/db/wide/wide_column_serialization.cc +0 -166
  240. package/vendor/librocksdb/vendor/rocksdb/db/wide/wide_column_serialization.h +0 -57
  241. package/vendor/librocksdb/vendor/rocksdb/db/wide/wide_columns.cc +0 -22
  242. package/vendor/librocksdb/vendor/rocksdb/db/wide/wide_columns_helper.cc +0 -52
  243. package/vendor/librocksdb/vendor/rocksdb/db/wide/wide_columns_helper.h +0 -40
  244. package/vendor/librocksdb/vendor/rocksdb/db/write_batch.cc +0 -3394
  245. package/vendor/librocksdb/vendor/rocksdb/db/write_batch_base.cc +0 -94
  246. package/vendor/librocksdb/vendor/rocksdb/db/write_batch_internal.h +0 -408
  247. package/vendor/librocksdb/vendor/rocksdb/db/write_callback.h +0 -27
  248. package/vendor/librocksdb/vendor/rocksdb/db/write_controller.cc +0 -121
  249. package/vendor/librocksdb/vendor/rocksdb/db/write_controller.h +0 -148
  250. package/vendor/librocksdb/vendor/rocksdb/db/write_stall_stats.cc +0 -179
  251. package/vendor/librocksdb/vendor/rocksdb/db/write_stall_stats.h +0 -47
  252. package/vendor/librocksdb/vendor/rocksdb/db/write_thread.cc +0 -931
  253. package/vendor/librocksdb/vendor/rocksdb/db/write_thread.h +0 -498
  254. package/vendor/librocksdb/vendor/rocksdb/env/composite_env.cc +0 -534
  255. package/vendor/librocksdb/vendor/rocksdb/env/composite_env_wrapper.h +0 -399
  256. package/vendor/librocksdb/vendor/rocksdb/env/emulated_clock.h +0 -114
  257. package/vendor/librocksdb/vendor/rocksdb/env/env.cc +0 -1253
  258. package/vendor/librocksdb/vendor/rocksdb/env/env_chroot.cc +0 -149
  259. package/vendor/librocksdb/vendor/rocksdb/env/env_chroot.h +0 -55
  260. package/vendor/librocksdb/vendor/rocksdb/env/env_encryption.cc +0 -1192
  261. package/vendor/librocksdb/vendor/rocksdb/env/env_encryption_ctr.h +0 -97
  262. package/vendor/librocksdb/vendor/rocksdb/env/env_posix.cc +0 -530
  263. package/vendor/librocksdb/vendor/rocksdb/env/file_system.cc +0 -278
  264. package/vendor/librocksdb/vendor/rocksdb/env/file_system_tracer.cc +0 -564
  265. package/vendor/librocksdb/vendor/rocksdb/env/file_system_tracer.h +0 -461
  266. package/vendor/librocksdb/vendor/rocksdb/env/fs_on_demand.cc +0 -331
  267. package/vendor/librocksdb/vendor/rocksdb/env/fs_on_demand.h +0 -139
  268. package/vendor/librocksdb/vendor/rocksdb/env/fs_posix.cc +0 -1285
  269. package/vendor/librocksdb/vendor/rocksdb/env/fs_readonly.h +0 -105
  270. package/vendor/librocksdb/vendor/rocksdb/env/fs_remap.cc +0 -341
  271. package/vendor/librocksdb/vendor/rocksdb/env/fs_remap.h +0 -137
  272. package/vendor/librocksdb/vendor/rocksdb/env/io_posix.cc +0 -1738
  273. package/vendor/librocksdb/vendor/rocksdb/env/io_posix.h +0 -517
  274. package/vendor/librocksdb/vendor/rocksdb/env/mock_env.cc +0 -1058
  275. package/vendor/librocksdb/vendor/rocksdb/env/mock_env.h +0 -144
  276. package/vendor/librocksdb/vendor/rocksdb/env/unique_id_gen.cc +0 -243
  277. package/vendor/librocksdb/vendor/rocksdb/env/unique_id_gen.h +0 -119
  278. package/vendor/librocksdb/vendor/rocksdb/file/delete_scheduler.cc +0 -513
  279. package/vendor/librocksdb/vendor/rocksdb/file/delete_scheduler.h +0 -200
  280. package/vendor/librocksdb/vendor/rocksdb/file/file_prefetch_buffer.cc +0 -992
  281. package/vendor/librocksdb/vendor/rocksdb/file/file_prefetch_buffer.h +0 -629
  282. package/vendor/librocksdb/vendor/rocksdb/file/file_util.cc +0 -308
  283. package/vendor/librocksdb/vendor/rocksdb/file/file_util.h +0 -123
  284. package/vendor/librocksdb/vendor/rocksdb/file/filename.cc +0 -538
  285. package/vendor/librocksdb/vendor/rocksdb/file/filename.h +0 -186
  286. package/vendor/librocksdb/vendor/rocksdb/file/line_file_reader.cc +0 -73
  287. package/vendor/librocksdb/vendor/rocksdb/file/line_file_reader.h +0 -60
  288. package/vendor/librocksdb/vendor/rocksdb/file/random_access_file_reader.cc +0 -639
  289. package/vendor/librocksdb/vendor/rocksdb/file/random_access_file_reader.h +0 -197
  290. package/vendor/librocksdb/vendor/rocksdb/file/read_write_util.cc +0 -33
  291. package/vendor/librocksdb/vendor/rocksdb/file/read_write_util.h +0 -31
  292. package/vendor/librocksdb/vendor/rocksdb/file/readahead_file_info.h +0 -33
  293. package/vendor/librocksdb/vendor/rocksdb/file/readahead_raf.cc +0 -169
  294. package/vendor/librocksdb/vendor/rocksdb/file/readahead_raf.h +0 -29
  295. package/vendor/librocksdb/vendor/rocksdb/file/sequence_file_reader.cc +0 -324
  296. package/vendor/librocksdb/vendor/rocksdb/file/sequence_file_reader.h +0 -127
  297. package/vendor/librocksdb/vendor/rocksdb/file/sst_file_manager_impl.cc +0 -525
  298. package/vendor/librocksdb/vendor/rocksdb/file/sst_file_manager_impl.h +0 -220
  299. package/vendor/librocksdb/vendor/rocksdb/file/writable_file_writer.cc +0 -1007
  300. package/vendor/librocksdb/vendor/rocksdb/file/writable_file_writer.h +0 -370
  301. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/advanced_cache.h +0 -665
  302. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/advanced_options.h +0 -1101
  303. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/attribute_groups.h +0 -114
  304. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/block_cache_trace_writer.h +0 -149
  305. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/c.h +0 -3122
  306. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/cache.h +0 -579
  307. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/cache_bench_tool.h +0 -14
  308. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/cleanable.h +0 -128
  309. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/compaction_filter.h +0 -374
  310. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/compaction_job_stats.h +0 -112
  311. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/comparator.h +0 -231
  312. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/compression_type.h +0 -186
  313. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/concurrent_task_limiter.h +0 -51
  314. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/configurable.h +0 -390
  315. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/convenience.h +0 -466
  316. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/customizable.h +0 -229
  317. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/data_structure.h +0 -186
  318. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/db.h +0 -2174
  319. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/db_bench_tool.h +0 -11
  320. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/db_dump_tool.h +0 -43
  321. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/db_stress_tool.h +0 -11
  322. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/env.h +0 -1920
  323. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/env_encryption.h +0 -363
  324. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/experimental.h +0 -492
  325. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/file_checksum.h +0 -146
  326. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/file_system.h +0 -1961
  327. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/filter_policy.h +0 -211
  328. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/flush_block_policy.h +0 -75
  329. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/functor_wrapper.h +0 -56
  330. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/io_status.h +0 -244
  331. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/iostats_context.h +0 -98
  332. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/iterator.h +0 -104
  333. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/iterator_base.h +0 -90
  334. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/ldb_tool.h +0 -42
  335. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/listener.h +0 -869
  336. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/memory_allocator.h +0 -87
  337. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/memtablerep.h +0 -421
  338. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/merge_operator.h +0 -337
  339. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/metadata.h +0 -258
  340. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/options.h +0 -2339
  341. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/perf_context.h +0 -319
  342. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/perf_level.h +0 -39
  343. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/persistent_cache.h +0 -74
  344. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/port_defs.h +0 -26
  345. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/rate_limiter.h +0 -172
  346. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/rocksdb_namespace.h +0 -16
  347. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/secondary_cache.h +0 -220
  348. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/slice.h +0 -264
  349. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/slice_transform.h +0 -135
  350. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/snapshot.h +0 -53
  351. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/sst_dump_tool.h +0 -17
  352. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/sst_file_manager.h +0 -139
  353. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/sst_file_reader.h +0 -61
  354. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/sst_file_writer.h +0 -203
  355. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/sst_partitioner.h +0 -142
  356. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/statistics.h +0 -794
  357. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/stats_history.h +0 -70
  358. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/status.h +0 -609
  359. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/system_clock.h +0 -129
  360. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/table.h +0 -938
  361. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/table_properties.h +0 -380
  362. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/table_reader_caller.h +0 -41
  363. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/thread_status.h +0 -197
  364. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/threadpool.h +0 -67
  365. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/trace_reader_writer.h +0 -52
  366. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/trace_record.h +0 -248
  367. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/trace_record_result.h +0 -187
  368. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/transaction_log.h +0 -128
  369. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/types.h +0 -113
  370. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/unique_id.h +0 -55
  371. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/universal_compaction.h +0 -127
  372. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/user_write_callback.h +0 -29
  373. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/agg_merge.h +0 -138
  374. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/backup_engine.h +0 -689
  375. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/cache_dump_load.h +0 -144
  376. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/checkpoint.h +0 -65
  377. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/convenience.h +0 -10
  378. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/customizable_util.h +0 -321
  379. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/db_ttl.h +0 -70
  380. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/debug.h +0 -46
  381. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/env_mirror.h +0 -179
  382. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/info_log_finder.h +0 -19
  383. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/ldb_cmd.h +0 -338
  384. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/ldb_cmd_execute_result.h +0 -75
  385. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/leveldb_options.h +0 -145
  386. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/lua/rocks_lua_custom_library.h +0 -43
  387. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/lua/rocks_lua_util.h +0 -55
  388. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/memory_util.h +0 -48
  389. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/object_registry.h +0 -583
  390. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/optimistic_transaction_db.h +0 -129
  391. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/option_change_migration.h +0 -24
  392. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/options_type.h +0 -1222
  393. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/options_util.h +0 -105
  394. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/replayer.h +0 -85
  395. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/sim_cache.h +0 -92
  396. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/stackable_db.h +0 -593
  397. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/table_properties_collectors.h +0 -133
  398. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/transaction.h +0 -765
  399. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/transaction_db.h +0 -510
  400. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/transaction_db_mutex.h +0 -89
  401. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/types_util.h +0 -36
  402. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/utilities/write_batch_with_index.h +0 -402
  403. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/version.h +0 -43
  404. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/wal_filter.h +0 -111
  405. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/wide_columns.h +0 -303
  406. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/write_batch.h +0 -518
  407. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/write_batch_base.h +0 -165
  408. package/vendor/librocksdb/vendor/rocksdb/include/rocksdb/write_buffer_manager.h +0 -183
  409. package/vendor/librocksdb/vendor/rocksdb/logging/auto_roll_logger.cc +0 -366
  410. package/vendor/librocksdb/vendor/rocksdb/logging/auto_roll_logger.h +0 -165
  411. package/vendor/librocksdb/vendor/rocksdb/logging/env_logger.h +0 -195
  412. package/vendor/librocksdb/vendor/rocksdb/logging/event_logger.cc +0 -68
  413. package/vendor/librocksdb/vendor/rocksdb/logging/event_logger.h +0 -202
  414. package/vendor/librocksdb/vendor/rocksdb/logging/log_buffer.cc +0 -91
  415. package/vendor/librocksdb/vendor/rocksdb/logging/log_buffer.h +0 -57
  416. package/vendor/librocksdb/vendor/rocksdb/logging/logging.h +0 -62
  417. package/vendor/librocksdb/vendor/rocksdb/memory/allocator.h +0 -58
  418. package/vendor/librocksdb/vendor/rocksdb/memory/arena.cc +0 -170
  419. package/vendor/librocksdb/vendor/rocksdb/memory/arena.h +0 -146
  420. package/vendor/librocksdb/vendor/rocksdb/memory/concurrent_arena.cc +0 -45
  421. package/vendor/librocksdb/vendor/rocksdb/memory/concurrent_arena.h +0 -215
  422. package/vendor/librocksdb/vendor/rocksdb/memory/jemalloc_nodump_allocator.cc +0 -304
  423. package/vendor/librocksdb/vendor/rocksdb/memory/jemalloc_nodump_allocator.h +0 -99
  424. package/vendor/librocksdb/vendor/rocksdb/memory/memkind_kmem_allocator.cc +0 -44
  425. package/vendor/librocksdb/vendor/rocksdb/memory/memkind_kmem_allocator.h +0 -43
  426. package/vendor/librocksdb/vendor/rocksdb/memory/memory_allocator.cc +0 -81
  427. package/vendor/librocksdb/vendor/rocksdb/memory/memory_allocator_impl.h +0 -47
  428. package/vendor/librocksdb/vendor/rocksdb/memory/memory_usage.h +0 -38
  429. package/vendor/librocksdb/vendor/rocksdb/memtable/alloc_tracker.cc +0 -63
  430. package/vendor/librocksdb/vendor/rocksdb/memtable/hash_linklist_rep.cc +0 -925
  431. package/vendor/librocksdb/vendor/rocksdb/memtable/hash_skiplist_rep.cc +0 -392
  432. package/vendor/librocksdb/vendor/rocksdb/memtable/inlineskiplist.h +0 -1051
  433. package/vendor/librocksdb/vendor/rocksdb/memtable/memtablerep_bench.cc +0 -687
  434. package/vendor/librocksdb/vendor/rocksdb/memtable/skiplist.h +0 -498
  435. package/vendor/librocksdb/vendor/rocksdb/memtable/skiplistrep.cc +0 -368
  436. package/vendor/librocksdb/vendor/rocksdb/memtable/stl_wrappers.h +0 -33
  437. package/vendor/librocksdb/vendor/rocksdb/memtable/vectorrep.cc +0 -307
  438. package/vendor/librocksdb/vendor/rocksdb/memtable/write_buffer_manager.cc +0 -185
  439. package/vendor/librocksdb/vendor/rocksdb/monitoring/file_read_sample.h +0 -23
  440. package/vendor/librocksdb/vendor/rocksdb/monitoring/histogram.cc +0 -280
  441. package/vendor/librocksdb/vendor/rocksdb/monitoring/histogram.h +0 -143
  442. package/vendor/librocksdb/vendor/rocksdb/monitoring/histogram_windowing.cc +0 -198
  443. package/vendor/librocksdb/vendor/rocksdb/monitoring/histogram_windowing.h +0 -84
  444. package/vendor/librocksdb/vendor/rocksdb/monitoring/in_memory_stats_history.cc +0 -50
  445. package/vendor/librocksdb/vendor/rocksdb/monitoring/in_memory_stats_history.h +0 -74
  446. package/vendor/librocksdb/vendor/rocksdb/monitoring/instrumented_mutex.cc +0 -90
  447. package/vendor/librocksdb/vendor/rocksdb/monitoring/instrumented_mutex.h +0 -126
  448. package/vendor/librocksdb/vendor/rocksdb/monitoring/iostats_context.cc +0 -78
  449. package/vendor/librocksdb/vendor/rocksdb/monitoring/iostats_context_imp.h +0 -62
  450. package/vendor/librocksdb/vendor/rocksdb/monitoring/perf_context.cc +0 -317
  451. package/vendor/librocksdb/vendor/rocksdb/monitoring/perf_context_imp.h +0 -103
  452. package/vendor/librocksdb/vendor/rocksdb/monitoring/perf_level.cc +0 -23
  453. package/vendor/librocksdb/vendor/rocksdb/monitoring/perf_level_imp.h +0 -14
  454. package/vendor/librocksdb/vendor/rocksdb/monitoring/perf_step_timer.h +0 -77
  455. package/vendor/librocksdb/vendor/rocksdb/monitoring/persistent_stats_history.cc +0 -173
  456. package/vendor/librocksdb/vendor/rocksdb/monitoring/persistent_stats_history.h +0 -83
  457. package/vendor/librocksdb/vendor/rocksdb/monitoring/statistics.cc +0 -561
  458. package/vendor/librocksdb/vendor/rocksdb/monitoring/statistics_impl.h +0 -143
  459. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_impl.cc +0 -163
  460. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_updater.cc +0 -328
  461. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_updater.h +0 -226
  462. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_updater_debug.cc +0 -43
  463. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_util.cc +0 -214
  464. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_util.h +0 -139
  465. package/vendor/librocksdb/vendor/rocksdb/monitoring/thread_status_util_debug.cc +0 -60
  466. package/vendor/librocksdb/vendor/rocksdb/options/cf_options.cc +0 -1218
  467. package/vendor/librocksdb/vendor/rocksdb/options/cf_options.h +0 -352
  468. package/vendor/librocksdb/vendor/rocksdb/options/configurable.cc +0 -720
  469. package/vendor/librocksdb/vendor/rocksdb/options/configurable_helper.h +0 -185
  470. package/vendor/librocksdb/vendor/rocksdb/options/configurable_test.h +0 -116
  471. package/vendor/librocksdb/vendor/rocksdb/options/customizable.cc +0 -133
  472. package/vendor/librocksdb/vendor/rocksdb/options/db_options.cc +0 -1113
  473. package/vendor/librocksdb/vendor/rocksdb/options/db_options.h +0 -160
  474. package/vendor/librocksdb/vendor/rocksdb/options/offpeak_time_info.cc +0 -59
  475. package/vendor/librocksdb/vendor/rocksdb/options/offpeak_time_info.h +0 -37
  476. package/vendor/librocksdb/vendor/rocksdb/options/options.cc +0 -717
  477. package/vendor/librocksdb/vendor/rocksdb/options/options_helper.cc +0 -1438
  478. package/vendor/librocksdb/vendor/rocksdb/options/options_helper.h +0 -115
  479. package/vendor/librocksdb/vendor/rocksdb/options/options_parser.cc +0 -745
  480. package/vendor/librocksdb/vendor/rocksdb/options/options_parser.h +0 -151
  481. package/vendor/librocksdb/vendor/rocksdb/port/jemalloc_helper.h +0 -107
  482. package/vendor/librocksdb/vendor/rocksdb/port/lang.h +0 -97
  483. package/vendor/librocksdb/vendor/rocksdb/port/likely.h +0 -18
  484. package/vendor/librocksdb/vendor/rocksdb/port/malloc.h +0 -17
  485. package/vendor/librocksdb/vendor/rocksdb/port/mmap.cc +0 -98
  486. package/vendor/librocksdb/vendor/rocksdb/port/mmap.h +0 -90
  487. package/vendor/librocksdb/vendor/rocksdb/port/port.h +0 -21
  488. package/vendor/librocksdb/vendor/rocksdb/port/port_dirent.h +0 -44
  489. package/vendor/librocksdb/vendor/rocksdb/port/port_example.h +0 -101
  490. package/vendor/librocksdb/vendor/rocksdb/port/port_posix.cc +0 -300
  491. package/vendor/librocksdb/vendor/rocksdb/port/port_posix.h +0 -246
  492. package/vendor/librocksdb/vendor/rocksdb/port/stack_trace.cc +0 -418
  493. package/vendor/librocksdb/vendor/rocksdb/port/stack_trace.h +0 -31
  494. package/vendor/librocksdb/vendor/rocksdb/port/sys_time.h +0 -63
  495. package/vendor/librocksdb/vendor/rocksdb/port/util_logger.h +0 -18
  496. package/vendor/librocksdb/vendor/rocksdb/port/win/env_default.cc +0 -45
  497. package/vendor/librocksdb/vendor/rocksdb/port/win/env_win.cc +0 -1436
  498. package/vendor/librocksdb/vendor/rocksdb/port/win/env_win.h +0 -305
  499. package/vendor/librocksdb/vendor/rocksdb/port/win/io_win.cc +0 -1101
  500. package/vendor/librocksdb/vendor/rocksdb/port/win/io_win.h +0 -504
  501. package/vendor/librocksdb/vendor/rocksdb/port/win/port_win.cc +0 -305
  502. package/vendor/librocksdb/vendor/rocksdb/port/win/port_win.h +0 -382
  503. package/vendor/librocksdb/vendor/rocksdb/port/win/win_jemalloc.cc +0 -80
  504. package/vendor/librocksdb/vendor/rocksdb/port/win/win_logger.cc +0 -192
  505. package/vendor/librocksdb/vendor/rocksdb/port/win/win_logger.h +0 -64
  506. package/vendor/librocksdb/vendor/rocksdb/port/win/win_thread.cc +0 -170
  507. package/vendor/librocksdb/vendor/rocksdb/port/win/win_thread.h +0 -117
  508. package/vendor/librocksdb/vendor/rocksdb/port/win/xpress_win.cc +0 -210
  509. package/vendor/librocksdb/vendor/rocksdb/port/win/xpress_win.h +0 -26
  510. package/vendor/librocksdb/vendor/rocksdb/port/xpress.h +0 -17
  511. package/vendor/librocksdb/vendor/rocksdb/rocksdb.pc.in +0 -10
  512. package/vendor/librocksdb/vendor/rocksdb/table/adaptive/adaptive_table_factory.cc +0 -119
  513. package/vendor/librocksdb/vendor/rocksdb/table/adaptive/adaptive_table_factory.h +0 -56
  514. package/vendor/librocksdb/vendor/rocksdb/table/block_based/binary_search_index_reader.cc +0 -73
  515. package/vendor/librocksdb/vendor/rocksdb/table/block_based/binary_search_index_reader.h +0 -48
  516. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block.cc +0 -1341
  517. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block.h +0 -969
  518. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_builder.cc +0 -2148
  519. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_builder.h +0 -208
  520. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_factory.cc +0 -980
  521. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_factory.h +0 -102
  522. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_iterator.cc +0 -893
  523. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_iterator.h +0 -445
  524. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_reader.cc +0 -3296
  525. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_reader.h +0 -785
  526. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_reader_impl.h +0 -205
  527. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_based_table_reader_sync_and_async.h +0 -819
  528. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_builder.cc +0 -266
  529. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_builder.h +0 -128
  530. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_cache.cc +0 -108
  531. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_cache.h +0 -190
  532. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_prefetcher.cc +0 -158
  533. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_prefetcher.h +0 -74
  534. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_prefix_index.cc +0 -226
  535. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_prefix_index.h +0 -70
  536. package/vendor/librocksdb/vendor/rocksdb/table/block_based/block_type.h +0 -34
  537. package/vendor/librocksdb/vendor/rocksdb/table/block_based/cachable_entry.h +0 -249
  538. package/vendor/librocksdb/vendor/rocksdb/table/block_based/data_block_footer.cc +0 -59
  539. package/vendor/librocksdb/vendor/rocksdb/table/block_based/data_block_footer.h +0 -25
  540. package/vendor/librocksdb/vendor/rocksdb/table/block_based/data_block_hash_index.cc +0 -94
  541. package/vendor/librocksdb/vendor/rocksdb/table/block_based/data_block_hash_index.h +0 -137
  542. package/vendor/librocksdb/vendor/rocksdb/table/block_based/filter_block.h +0 -189
  543. package/vendor/librocksdb/vendor/rocksdb/table/block_based/filter_block_reader_common.cc +0 -169
  544. package/vendor/librocksdb/vendor/rocksdb/table/block_based/filter_block_reader_common.h +0 -79
  545. package/vendor/librocksdb/vendor/rocksdb/table/block_based/filter_policy.cc +0 -1989
  546. package/vendor/librocksdb/vendor/rocksdb/table/block_based/filter_policy_internal.h +0 -341
  547. package/vendor/librocksdb/vendor/rocksdb/table/block_based/flush_block_policy.cc +0 -132
  548. package/vendor/librocksdb/vendor/rocksdb/table/block_based/flush_block_policy_impl.h +0 -40
  549. package/vendor/librocksdb/vendor/rocksdb/table/block_based/full_filter_block.cc +0 -297
  550. package/vendor/librocksdb/vendor/rocksdb/table/block_based/full_filter_block.h +0 -142
  551. package/vendor/librocksdb/vendor/rocksdb/table/block_based/hash_index_reader.cc +0 -146
  552. package/vendor/librocksdb/vendor/rocksdb/table/block_based/hash_index_reader.h +0 -49
  553. package/vendor/librocksdb/vendor/rocksdb/table/block_based/index_builder.cc +0 -305
  554. package/vendor/librocksdb/vendor/rocksdb/table/block_based/index_builder.h +0 -534
  555. package/vendor/librocksdb/vendor/rocksdb/table/block_based/index_reader_common.cc +0 -62
  556. package/vendor/librocksdb/vendor/rocksdb/table/block_based/index_reader_common.h +0 -94
  557. package/vendor/librocksdb/vendor/rocksdb/table/block_based/mock_block_based_table.h +0 -62
  558. package/vendor/librocksdb/vendor/rocksdb/table/block_based/parsed_full_filter_block.cc +0 -23
  559. package/vendor/librocksdb/vendor/rocksdb/table/block_based/parsed_full_filter_block.h +0 -47
  560. package/vendor/librocksdb/vendor/rocksdb/table/block_based/partitioned_filter_block.cc +0 -610
  561. package/vendor/librocksdb/vendor/rocksdb/table/block_based/partitioned_filter_block.h +0 -188
  562. package/vendor/librocksdb/vendor/rocksdb/table/block_based/partitioned_index_iterator.cc +0 -164
  563. package/vendor/librocksdb/vendor/rocksdb/table/block_based/partitioned_index_iterator.h +0 -160
  564. package/vendor/librocksdb/vendor/rocksdb/table/block_based/partitioned_index_reader.cc +0 -264
  565. package/vendor/librocksdb/vendor/rocksdb/table/block_based/partitioned_index_reader.h +0 -58
  566. package/vendor/librocksdb/vendor/rocksdb/table/block_based/reader_common.cc +0 -64
  567. package/vendor/librocksdb/vendor/rocksdb/table/block_based/reader_common.h +0 -36
  568. package/vendor/librocksdb/vendor/rocksdb/table/block_based/uncompression_dict_reader.cc +0 -118
  569. package/vendor/librocksdb/vendor/rocksdb/table/block_based/uncompression_dict_reader.h +0 -60
  570. package/vendor/librocksdb/vendor/rocksdb/table/block_fetcher.cc +0 -458
  571. package/vendor/librocksdb/vendor/rocksdb/table/block_fetcher.h +0 -168
  572. package/vendor/librocksdb/vendor/rocksdb/table/compaction_merging_iterator.cc +0 -370
  573. package/vendor/librocksdb/vendor/rocksdb/table/compaction_merging_iterator.h +0 -45
  574. package/vendor/librocksdb/vendor/rocksdb/table/cuckoo/cuckoo_table_builder.cc +0 -555
  575. package/vendor/librocksdb/vendor/rocksdb/table/cuckoo/cuckoo_table_builder.h +0 -136
  576. package/vendor/librocksdb/vendor/rocksdb/table/cuckoo/cuckoo_table_factory.cc +0 -100
  577. package/vendor/librocksdb/vendor/rocksdb/table/cuckoo/cuckoo_table_factory.h +0 -80
  578. package/vendor/librocksdb/vendor/rocksdb/table/cuckoo/cuckoo_table_reader.cc +0 -416
  579. package/vendor/librocksdb/vendor/rocksdb/table/cuckoo/cuckoo_table_reader.h +0 -100
  580. package/vendor/librocksdb/vendor/rocksdb/table/format.cc +0 -708
  581. package/vendor/librocksdb/vendor/rocksdb/table/format.h +0 -439
  582. package/vendor/librocksdb/vendor/rocksdb/table/get_context.cc +0 -622
  583. package/vendor/librocksdb/vendor/rocksdb/table/get_context.h +0 -259
  584. package/vendor/librocksdb/vendor/rocksdb/table/internal_iterator.h +0 -242
  585. package/vendor/librocksdb/vendor/rocksdb/table/iter_heap.h +0 -44
  586. package/vendor/librocksdb/vendor/rocksdb/table/iterator.cc +0 -134
  587. package/vendor/librocksdb/vendor/rocksdb/table/iterator_wrapper.h +0 -225
  588. package/vendor/librocksdb/vendor/rocksdb/table/merging_iterator.cc +0 -1755
  589. package/vendor/librocksdb/vendor/rocksdb/table/merging_iterator.h +0 -100
  590. package/vendor/librocksdb/vendor/rocksdb/table/meta_blocks.cc +0 -590
  591. package/vendor/librocksdb/vendor/rocksdb/table/meta_blocks.h +0 -181
  592. package/vendor/librocksdb/vendor/rocksdb/table/mock_table.cc +0 -355
  593. package/vendor/librocksdb/vendor/rocksdb/table/mock_table.h +0 -92
  594. package/vendor/librocksdb/vendor/rocksdb/table/multiget_context.h +0 -405
  595. package/vendor/librocksdb/vendor/rocksdb/table/persistent_cache_helper.cc +0 -110
  596. package/vendor/librocksdb/vendor/rocksdb/table/persistent_cache_helper.h +0 -46
  597. package/vendor/librocksdb/vendor/rocksdb/table/persistent_cache_options.h +0 -34
  598. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_bloom.cc +0 -78
  599. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_bloom.h +0 -132
  600. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_builder.cc +0 -348
  601. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_builder.h +0 -151
  602. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_factory.cc +0 -295
  603. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_factory.h +0 -180
  604. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_index.cc +0 -211
  605. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_index.h +0 -246
  606. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_key_coding.cc +0 -508
  607. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_key_coding.h +0 -199
  608. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_reader.cc +0 -778
  609. package/vendor/librocksdb/vendor/rocksdb/table/plain/plain_table_reader.h +0 -243
  610. package/vendor/librocksdb/vendor/rocksdb/table/sst_file_dumper.cc +0 -601
  611. package/vendor/librocksdb/vendor/rocksdb/table/sst_file_dumper.h +0 -104
  612. package/vendor/librocksdb/vendor/rocksdb/table/sst_file_reader.cc +0 -166
  613. package/vendor/librocksdb/vendor/rocksdb/table/sst_file_writer.cc +0 -536
  614. package/vendor/librocksdb/vendor/rocksdb/table/sst_file_writer_collectors.h +0 -97
  615. package/vendor/librocksdb/vendor/rocksdb/table/table_builder.h +0 -239
  616. package/vendor/librocksdb/vendor/rocksdb/table/table_factory.cc +0 -52
  617. package/vendor/librocksdb/vendor/rocksdb/table/table_iterator.h +0 -69
  618. package/vendor/librocksdb/vendor/rocksdb/table/table_properties.cc +0 -357
  619. package/vendor/librocksdb/vendor/rocksdb/table/table_properties_internal.h +0 -14
  620. package/vendor/librocksdb/vendor/rocksdb/table/table_reader.h +0 -202
  621. package/vendor/librocksdb/vendor/rocksdb/table/table_reader_bench.cc +0 -341
  622. package/vendor/librocksdb/vendor/rocksdb/table/two_level_iterator.cc +0 -222
  623. package/vendor/librocksdb/vendor/rocksdb/table/two_level_iterator.h +0 -43
  624. package/vendor/librocksdb/vendor/rocksdb/table/unique_id.cc +0 -223
  625. package/vendor/librocksdb/vendor/rocksdb/table/unique_id_impl.h +0 -93
  626. package/vendor/librocksdb/vendor/rocksdb/test_util/mock_time_env.cc +0 -38
  627. package/vendor/librocksdb/vendor/rocksdb/test_util/mock_time_env.h +0 -109
  628. package/vendor/librocksdb/vendor/rocksdb/test_util/secondary_cache_test_util.cc +0 -93
  629. package/vendor/librocksdb/vendor/rocksdb/test_util/secondary_cache_test_util.h +0 -131
  630. package/vendor/librocksdb/vendor/rocksdb/test_util/sync_point.cc +0 -82
  631. package/vendor/librocksdb/vendor/rocksdb/test_util/sync_point.h +0 -182
  632. package/vendor/librocksdb/vendor/rocksdb/test_util/sync_point_impl.cc +0 -152
  633. package/vendor/librocksdb/vendor/rocksdb/test_util/sync_point_impl.h +0 -96
  634. package/vendor/librocksdb/vendor/rocksdb/test_util/testharness.cc +0 -105
  635. package/vendor/librocksdb/vendor/rocksdb/test_util/testharness.h +0 -124
  636. package/vendor/librocksdb/vendor/rocksdb/test_util/testutil.cc +0 -776
  637. package/vendor/librocksdb/vendor/rocksdb/test_util/testutil.h +0 -908
  638. package/vendor/librocksdb/vendor/rocksdb/test_util/transaction_test_util.cc +0 -400
  639. package/vendor/librocksdb/vendor/rocksdb/test_util/transaction_test_util.h +0 -147
  640. package/vendor/librocksdb/vendor/rocksdb/tools/CMakeLists.txt +0 -30
  641. package/vendor/librocksdb/vendor/rocksdb/tools/blob_dump.cc +0 -103
  642. package/vendor/librocksdb/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.cc +0 -2331
  643. package/vendor/librocksdb/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.h +0 -398
  644. package/vendor/librocksdb/vendor/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_tool.cc +0 -17
  645. package/vendor/librocksdb/vendor/rocksdb/tools/db_bench.cc +0 -21
  646. package/vendor/librocksdb/vendor/rocksdb/tools/db_bench_tool.cc +0 -8743
  647. package/vendor/librocksdb/vendor/rocksdb/tools/db_repl_stress.cc +0 -132
  648. package/vendor/librocksdb/vendor/rocksdb/tools/dump/db_dump_tool.cc +0 -264
  649. package/vendor/librocksdb/vendor/rocksdb/tools/dump/rocksdb_dump.cc +0 -60
  650. package/vendor/librocksdb/vendor/rocksdb/tools/dump/rocksdb_undump.cc +0 -59
  651. package/vendor/librocksdb/vendor/rocksdb/tools/io_tracer_parser.cc +0 -17
  652. package/vendor/librocksdb/vendor/rocksdb/tools/io_tracer_parser_tool.cc +0 -142
  653. package/vendor/librocksdb/vendor/rocksdb/tools/io_tracer_parser_tool.h +0 -38
  654. package/vendor/librocksdb/vendor/rocksdb/tools/ldb.cc +0 -13
  655. package/vendor/librocksdb/vendor/rocksdb/tools/ldb_cmd.cc +0 -5044
  656. package/vendor/librocksdb/vendor/rocksdb/tools/ldb_cmd_impl.h +0 -814
  657. package/vendor/librocksdb/vendor/rocksdb/tools/ldb_tool.cc +0 -192
  658. package/vendor/librocksdb/vendor/rocksdb/tools/simulated_hybrid_file_system.cc +0 -244
  659. package/vendor/librocksdb/vendor/rocksdb/tools/simulated_hybrid_file_system.h +0 -124
  660. package/vendor/librocksdb/vendor/rocksdb/tools/sst_dump.cc +0 -12
  661. package/vendor/librocksdb/vendor/rocksdb/tools/sst_dump_tool.cc +0 -588
  662. package/vendor/librocksdb/vendor/rocksdb/tools/trace_analyzer.cc +0 -17
  663. package/vendor/librocksdb/vendor/rocksdb/tools/trace_analyzer_tool.cc +0 -1935
  664. package/vendor/librocksdb/vendor/rocksdb/tools/trace_analyzer_tool.h +0 -329
  665. package/vendor/librocksdb/vendor/rocksdb/tools/write_stress.cc +0 -305
  666. package/vendor/librocksdb/vendor/rocksdb/trace_replay/block_cache_tracer.cc +0 -509
  667. package/vendor/librocksdb/vendor/rocksdb/trace_replay/block_cache_tracer.h +0 -239
  668. package/vendor/librocksdb/vendor/rocksdb/trace_replay/io_tracer.cc +0 -303
  669. package/vendor/librocksdb/vendor/rocksdb/trace_replay/io_tracer.h +0 -185
  670. package/vendor/librocksdb/vendor/rocksdb/trace_replay/trace_record.cc +0 -206
  671. package/vendor/librocksdb/vendor/rocksdb/trace_replay/trace_record_handler.cc +0 -190
  672. package/vendor/librocksdb/vendor/rocksdb/trace_replay/trace_record_handler.h +0 -46
  673. package/vendor/librocksdb/vendor/rocksdb/trace_replay/trace_record_result.cc +0 -146
  674. package/vendor/librocksdb/vendor/rocksdb/trace_replay/trace_replay.cc +0 -632
  675. package/vendor/librocksdb/vendor/rocksdb/trace_replay/trace_replay.h +0 -184
  676. package/vendor/librocksdb/vendor/rocksdb/util/aligned_buffer.h +0 -235
  677. package/vendor/librocksdb/vendor/rocksdb/util/aligned_storage.h +0 -24
  678. package/vendor/librocksdb/vendor/rocksdb/util/async_file_reader.cc +0 -84
  679. package/vendor/librocksdb/vendor/rocksdb/util/async_file_reader.h +0 -144
  680. package/vendor/librocksdb/vendor/rocksdb/util/atomic.h +0 -111
  681. package/vendor/librocksdb/vendor/rocksdb/util/autovector.h +0 -397
  682. package/vendor/librocksdb/vendor/rocksdb/util/bloom_impl.h +0 -489
  683. package/vendor/librocksdb/vendor/rocksdb/util/build_version.cc.in +0 -79
  684. package/vendor/librocksdb/vendor/rocksdb/util/cast_util.h +0 -88
  685. package/vendor/librocksdb/vendor/rocksdb/util/channel.h +0 -69
  686. package/vendor/librocksdb/vendor/rocksdb/util/cleanable.cc +0 -181
  687. package/vendor/librocksdb/vendor/rocksdb/util/coding.cc +0 -90
  688. package/vendor/librocksdb/vendor/rocksdb/util/coding.h +0 -385
  689. package/vendor/librocksdb/vendor/rocksdb/util/coding_lean.h +0 -101
  690. package/vendor/librocksdb/vendor/rocksdb/util/compaction_job_stats_impl.cc +0 -94
  691. package/vendor/librocksdb/vendor/rocksdb/util/comparator.cc +0 -443
  692. package/vendor/librocksdb/vendor/rocksdb/util/compression.cc +0 -122
  693. package/vendor/librocksdb/vendor/rocksdb/util/compression.h +0 -1879
  694. package/vendor/librocksdb/vendor/rocksdb/util/compression_context_cache.cc +0 -106
  695. package/vendor/librocksdb/vendor/rocksdb/util/compression_context_cache.h +0 -47
  696. package/vendor/librocksdb/vendor/rocksdb/util/concurrent_task_limiter_impl.cc +0 -64
  697. package/vendor/librocksdb/vendor/rocksdb/util/concurrent_task_limiter_impl.h +0 -67
  698. package/vendor/librocksdb/vendor/rocksdb/util/core_local.h +0 -85
  699. package/vendor/librocksdb/vendor/rocksdb/util/coro_utils.h +0 -112
  700. package/vendor/librocksdb/vendor/rocksdb/util/crc32c.cc +0 -1295
  701. package/vendor/librocksdb/vendor/rocksdb/util/crc32c.h +0 -56
  702. package/vendor/librocksdb/vendor/rocksdb/util/crc32c_arm64.cc +0 -213
  703. package/vendor/librocksdb/vendor/rocksdb/util/crc32c_arm64.h +0 -51
  704. package/vendor/librocksdb/vendor/rocksdb/util/crc32c_ppc.c +0 -94
  705. package/vendor/librocksdb/vendor/rocksdb/util/crc32c_ppc.h +0 -21
  706. package/vendor/librocksdb/vendor/rocksdb/util/crc32c_ppc_asm.S +0 -756
  707. package/vendor/librocksdb/vendor/rocksdb/util/crc32c_ppc_constants.h +0 -900
  708. package/vendor/librocksdb/vendor/rocksdb/util/data_structure.cc +0 -16
  709. package/vendor/librocksdb/vendor/rocksdb/util/defer.h +0 -82
  710. package/vendor/librocksdb/vendor/rocksdb/util/distributed_mutex.h +0 -50
  711. package/vendor/librocksdb/vendor/rocksdb/util/duplicate_detector.h +0 -69
  712. package/vendor/librocksdb/vendor/rocksdb/util/dynamic_bloom.cc +0 -70
  713. package/vendor/librocksdb/vendor/rocksdb/util/dynamic_bloom.h +0 -214
  714. package/vendor/librocksdb/vendor/rocksdb/util/fastrange.h +0 -114
  715. package/vendor/librocksdb/vendor/rocksdb/util/file_checksum_helper.cc +0 -170
  716. package/vendor/librocksdb/vendor/rocksdb/util/file_checksum_helper.h +0 -101
  717. package/vendor/librocksdb/vendor/rocksdb/util/filter_bench.cc +0 -840
  718. package/vendor/librocksdb/vendor/rocksdb/util/gflags_compat.h +0 -29
  719. package/vendor/librocksdb/vendor/rocksdb/util/hash.cc +0 -201
  720. package/vendor/librocksdb/vendor/rocksdb/util/hash.h +0 -141
  721. package/vendor/librocksdb/vendor/rocksdb/util/hash128.h +0 -26
  722. package/vendor/librocksdb/vendor/rocksdb/util/hash_containers.h +0 -51
  723. package/vendor/librocksdb/vendor/rocksdb/util/hash_map.h +0 -67
  724. package/vendor/librocksdb/vendor/rocksdb/util/heap.h +0 -174
  725. package/vendor/librocksdb/vendor/rocksdb/util/kv_map.h +0 -33
  726. package/vendor/librocksdb/vendor/rocksdb/util/log_write_bench.cc +0 -88
  727. package/vendor/librocksdb/vendor/rocksdb/util/math.h +0 -351
  728. package/vendor/librocksdb/vendor/rocksdb/util/math128.h +0 -338
  729. package/vendor/librocksdb/vendor/rocksdb/util/murmurhash.cc +0 -196
  730. package/vendor/librocksdb/vendor/rocksdb/util/murmurhash.h +0 -43
  731. package/vendor/librocksdb/vendor/rocksdb/util/mutexlock.h +0 -189
  732. package/vendor/librocksdb/vendor/rocksdb/util/overload.h +0 -23
  733. package/vendor/librocksdb/vendor/rocksdb/util/ppc-opcode.h +0 -27
  734. package/vendor/librocksdb/vendor/rocksdb/util/random.cc +0 -63
  735. package/vendor/librocksdb/vendor/rocksdb/util/random.h +0 -190
  736. package/vendor/librocksdb/vendor/rocksdb/util/rate_limiter.cc +0 -391
  737. package/vendor/librocksdb/vendor/rocksdb/util/rate_limiter_impl.h +0 -156
  738. package/vendor/librocksdb/vendor/rocksdb/util/repeatable_thread.h +0 -149
  739. package/vendor/librocksdb/vendor/rocksdb/util/ribbon_alg.h +0 -1225
  740. package/vendor/librocksdb/vendor/rocksdb/util/ribbon_config.cc +0 -498
  741. package/vendor/librocksdb/vendor/rocksdb/util/ribbon_config.h +0 -182
  742. package/vendor/librocksdb/vendor/rocksdb/util/ribbon_impl.h +0 -1137
  743. package/vendor/librocksdb/vendor/rocksdb/util/set_comparator.h +0 -24
  744. package/vendor/librocksdb/vendor/rocksdb/util/single_thread_executor.h +0 -57
  745. package/vendor/librocksdb/vendor/rocksdb/util/slice.cc +0 -366
  746. package/vendor/librocksdb/vendor/rocksdb/util/status.cc +0 -163
  747. package/vendor/librocksdb/vendor/rocksdb/util/stderr_logger.cc +0 -62
  748. package/vendor/librocksdb/vendor/rocksdb/util/stderr_logger.h +0 -41
  749. package/vendor/librocksdb/vendor/rocksdb/util/stop_watch.h +0 -136
  750. package/vendor/librocksdb/vendor/rocksdb/util/string_util.cc +0 -554
  751. package/vendor/librocksdb/vendor/rocksdb/util/string_util.h +0 -185
  752. package/vendor/librocksdb/vendor/rocksdb/util/thread_guard.h +0 -41
  753. package/vendor/librocksdb/vendor/rocksdb/util/thread_local.cc +0 -521
  754. package/vendor/librocksdb/vendor/rocksdb/util/thread_local.h +0 -100
  755. package/vendor/librocksdb/vendor/rocksdb/util/thread_operation.h +0 -122
  756. package/vendor/librocksdb/vendor/rocksdb/util/threadpool_imp.cc +0 -550
  757. package/vendor/librocksdb/vendor/rocksdb/util/threadpool_imp.h +0 -120
  758. package/vendor/librocksdb/vendor/rocksdb/util/timer.h +0 -340
  759. package/vendor/librocksdb/vendor/rocksdb/util/timer_queue.h +0 -231
  760. package/vendor/librocksdb/vendor/rocksdb/util/udt_util.cc +0 -418
  761. package/vendor/librocksdb/vendor/rocksdb/util/udt_util.h +0 -275
  762. package/vendor/librocksdb/vendor/rocksdb/util/user_comparator_wrapper.h +0 -64
  763. package/vendor/librocksdb/vendor/rocksdb/util/vector_iterator.h +0 -114
  764. package/vendor/librocksdb/vendor/rocksdb/util/work_queue.h +0 -150
  765. package/vendor/librocksdb/vendor/rocksdb/util/write_batch_util.cc +0 -25
  766. package/vendor/librocksdb/vendor/rocksdb/util/write_batch_util.h +0 -90
  767. package/vendor/librocksdb/vendor/rocksdb/util/xxhash.cc +0 -48
  768. package/vendor/librocksdb/vendor/rocksdb/util/xxhash.h +0 -6364
  769. package/vendor/librocksdb/vendor/rocksdb/util/xxph3.h +0 -1760
  770. package/vendor/librocksdb/vendor/rocksdb/utilities/agg_merge/agg_merge.cc +0 -237
  771. package/vendor/librocksdb/vendor/rocksdb/utilities/agg_merge/agg_merge_impl.h +0 -49
  772. package/vendor/librocksdb/vendor/rocksdb/utilities/agg_merge/test_agg_merge.cc +0 -103
  773. package/vendor/librocksdb/vendor/rocksdb/utilities/agg_merge/test_agg_merge.h +0 -47
  774. package/vendor/librocksdb/vendor/rocksdb/utilities/backup/backup_engine.cc +0 -3357
  775. package/vendor/librocksdb/vendor/rocksdb/utilities/backup/backup_engine_impl.h +0 -34
  776. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_compaction_filter.cc +0 -490
  777. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_compaction_filter.h +0 -202
  778. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db.cc +0 -109
  779. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db.h +0 -231
  780. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db_gc_stats.h +0 -54
  781. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db_impl.cc +0 -2269
  782. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db_impl.h +0 -514
  783. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.cc +0 -127
  784. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db_iterator.h +0 -148
  785. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_db_listener.h +0 -71
  786. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_dump_tool.cc +0 -276
  787. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_dump_tool.h +0 -56
  788. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_file.cc +0 -311
  789. package/vendor/librocksdb/vendor/rocksdb/utilities/blob_db/blob_file.h +0 -245
  790. package/vendor/librocksdb/vendor/rocksdb/utilities/cache_dump_load.cc +0 -67
  791. package/vendor/librocksdb/vendor/rocksdb/utilities/cache_dump_load_impl.cc +0 -389
  792. package/vendor/librocksdb/vendor/rocksdb/utilities/cache_dump_load_impl.h +0 -368
  793. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/cassandra_compaction_filter.cc +0 -104
  794. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/cassandra_compaction_filter.h +0 -57
  795. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/cassandra_options.h +0 -41
  796. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/format.cc +0 -365
  797. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/format.h +0 -183
  798. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/merge_operator.cc +0 -76
  799. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/merge_operator.h +0 -43
  800. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/serialize.h +0 -81
  801. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/test_utils.cc +0 -67
  802. package/vendor/librocksdb/vendor/rocksdb/utilities/cassandra/test_utils.h +0 -42
  803. package/vendor/librocksdb/vendor/rocksdb/utilities/checkpoint/checkpoint_impl.cc +0 -472
  804. package/vendor/librocksdb/vendor/rocksdb/utilities/checkpoint/checkpoint_impl.h +0 -64
  805. package/vendor/librocksdb/vendor/rocksdb/utilities/compaction_filters/layered_compaction_filter_base.h +0 -41
  806. package/vendor/librocksdb/vendor/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc +0 -24
  807. package/vendor/librocksdb/vendor/rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.h +0 -26
  808. package/vendor/librocksdb/vendor/rocksdb/utilities/compaction_filters.cc +0 -52
  809. package/vendor/librocksdb/vendor/rocksdb/utilities/convenience/info_log_finder.cc +0 -26
  810. package/vendor/librocksdb/vendor/rocksdb/utilities/counted_fs.cc +0 -379
  811. package/vendor/librocksdb/vendor/rocksdb/utilities/counted_fs.h +0 -158
  812. package/vendor/librocksdb/vendor/rocksdb/utilities/debug.cc +0 -134
  813. package/vendor/librocksdb/vendor/rocksdb/utilities/env_mirror.cc +0 -280
  814. package/vendor/librocksdb/vendor/rocksdb/utilities/env_timed.cc +0 -181
  815. package/vendor/librocksdb/vendor/rocksdb/utilities/env_timed.h +0 -95
  816. package/vendor/librocksdb/vendor/rocksdb/utilities/fault_injection_env.cc +0 -555
  817. package/vendor/librocksdb/vendor/rocksdb/utilities/fault_injection_env.h +0 -252
  818. package/vendor/librocksdb/vendor/rocksdb/utilities/fault_injection_fs.cc +0 -1507
  819. package/vendor/librocksdb/vendor/rocksdb/utilities/fault_injection_fs.h +0 -760
  820. package/vendor/librocksdb/vendor/rocksdb/utilities/fault_injection_secondary_cache.cc +0 -138
  821. package/vendor/librocksdb/vendor/rocksdb/utilities/fault_injection_secondary_cache.h +0 -115
  822. package/vendor/librocksdb/vendor/rocksdb/utilities/leveldb_options/leveldb_options.cc +0 -57
  823. package/vendor/librocksdb/vendor/rocksdb/utilities/memory/memory_util.cc +0 -50
  824. package/vendor/librocksdb/vendor/rocksdb/utilities/memory_allocators.h +0 -103
  825. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/bytesxor.cc +0 -57
  826. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/bytesxor.h +0 -39
  827. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/max.cc +0 -64
  828. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/max_operator.h +0 -35
  829. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/put.cc +0 -74
  830. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/put_operator.h +0 -56
  831. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/sortlist.cc +0 -97
  832. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/sortlist.h +0 -42
  833. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/string_append/stringappend.cc +0 -76
  834. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/string_append/stringappend.h +0 -32
  835. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/string_append/stringappend2.cc +0 -129
  836. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/string_append/stringappend2.h +0 -51
  837. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/uint64add.cc +0 -56
  838. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators/uint64add.h +0 -35
  839. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators.cc +0 -115
  840. package/vendor/librocksdb/vendor/rocksdb/utilities/merge_operators.h +0 -36
  841. package/vendor/librocksdb/vendor/rocksdb/utilities/object_registry.cc +0 -381
  842. package/vendor/librocksdb/vendor/rocksdb/utilities/option_change_migration/option_change_migration.cc +0 -169
  843. package/vendor/librocksdb/vendor/rocksdb/utilities/options/options_util.cc +0 -117
  844. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier.cc +0 -420
  845. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier.h +0 -154
  846. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_file.cc +0 -607
  847. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_file.h +0 -291
  848. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_file_buffer.h +0 -127
  849. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_metadata.cc +0 -84
  850. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/block_cache_tier_metadata.h +0 -122
  851. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/hash_table.h +0 -237
  852. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/hash_table_bench.cc +0 -310
  853. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/hash_table_evictable.h +0 -166
  854. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/lrulist.h +0 -172
  855. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/persistent_cache_bench.cc +0 -355
  856. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/persistent_cache_test.h +0 -284
  857. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/persistent_cache_tier.cc +0 -165
  858. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/persistent_cache_tier.h +0 -340
  859. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/persistent_cache_util.h +0 -67
  860. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/volatile_tier_impl.cc +0 -138
  861. package/vendor/librocksdb/vendor/rocksdb/utilities/persistent_cache/volatile_tier_impl.h +0 -139
  862. package/vendor/librocksdb/vendor/rocksdb/utilities/simulator_cache/cache_simulator.cc +0 -287
  863. package/vendor/librocksdb/vendor/rocksdb/utilities/simulator_cache/cache_simulator.h +0 -231
  864. package/vendor/librocksdb/vendor/rocksdb/utilities/simulator_cache/sim_cache.cc +0 -375
  865. package/vendor/librocksdb/vendor/rocksdb/utilities/table_properties_collectors/compact_for_tiering_collector.cc +0 -144
  866. package/vendor/librocksdb/vendor/rocksdb/utilities/table_properties_collectors/compact_for_tiering_collector.h +0 -45
  867. package/vendor/librocksdb/vendor/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.cc +0 -233
  868. package/vendor/librocksdb/vendor/rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.h +0 -65
  869. package/vendor/librocksdb/vendor/rocksdb/utilities/trace/file_trace_reader_writer.cc +0 -132
  870. package/vendor/librocksdb/vendor/rocksdb/utilities/trace/file_trace_reader_writer.h +0 -48
  871. package/vendor/librocksdb/vendor/rocksdb/utilities/trace/replayer_impl.cc +0 -313
  872. package/vendor/librocksdb/vendor/rocksdb/utilities/trace/replayer_impl.h +0 -84
  873. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/lock_manager.cc +0 -27
  874. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/lock_manager.h +0 -80
  875. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/lock_tracker.h +0 -207
  876. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager.cc +0 -718
  877. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager.h +0 -222
  878. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/point/point_lock_manager_test.h +0 -324
  879. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/point/point_lock_tracker.cc +0 -255
  880. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/point/point_lock_tracker.h +0 -97
  881. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_lock_manager.h +0 -34
  882. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/db.h +0 -81
  883. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/ft/comparator.h +0 -138
  884. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/ft/ft-status.h +0 -102
  885. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/concurrent_tree.cc +0 -137
  886. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/concurrent_tree.h +0 -174
  887. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/keyrange.cc +0 -220
  888. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/keyrange.h +0 -141
  889. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.cc +0 -525
  890. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.h +0 -255
  891. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/locktree.cc +0 -1021
  892. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/locktree.h +0 -580
  893. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/manager.cc +0 -525
  894. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/range_buffer.cc +0 -263
  895. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/range_buffer.h +0 -178
  896. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/treenode.cc +0 -518
  897. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/treenode.h +0 -302
  898. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/txnid_set.cc +0 -118
  899. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/txnid_set.h +0 -92
  900. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/wfg.cc +0 -211
  901. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/wfg.h +0 -124
  902. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/memory.h +0 -215
  903. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_assert_subst.h +0 -43
  904. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_atomic.h +0 -130
  905. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_external_pthread.h +0 -87
  906. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_instrumentation.h +0 -286
  907. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_portability.h +0 -87
  908. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_pthread.h +0 -520
  909. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_race_tools.h +0 -179
  910. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h +0 -197
  911. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/txn_subst.h +0 -31
  912. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/standalone_port.cc +0 -139
  913. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/dbt.cc +0 -165
  914. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/dbt.h +0 -98
  915. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/growable_array.h +0 -144
  916. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/memarena.cc +0 -199
  917. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/memarena.h +0 -141
  918. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/omt.h +0 -794
  919. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/omt_impl.h +0 -1295
  920. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/partitioned_counter.h +0 -165
  921. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/lib/util/status.h +0 -76
  922. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.cc +0 -501
  923. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.h +0 -135
  924. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_tracker.cc +0 -156
  925. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_tracker.h +0 -146
  926. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/optimistic_transaction.cc +0 -208
  927. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/optimistic_transaction.h +0 -99
  928. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc +0 -111
  929. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/optimistic_transaction_db_impl.h +0 -110
  930. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/pessimistic_transaction.cc +0 -1278
  931. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/pessimistic_transaction.h +0 -345
  932. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/pessimistic_transaction_db.cc +0 -845
  933. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/pessimistic_transaction_db.h +0 -345
  934. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/snapshot_checker.cc +0 -37
  935. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_base.cc +0 -912
  936. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_base.h +0 -455
  937. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_db_mutex_impl.cc +0 -133
  938. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_db_mutex_impl.h +0 -24
  939. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_test.h +0 -589
  940. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_util.cc +0 -207
  941. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/transaction_util.h +0 -86
  942. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_prepared_txn.cc +0 -548
  943. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_prepared_txn.h +0 -118
  944. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_prepared_txn_db.cc +0 -1100
  945. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_prepared_txn_db.h +0 -1149
  946. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_unprepared_txn.cc +0 -1089
  947. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_unprepared_txn.h +0 -333
  948. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_unprepared_txn_db.cc +0 -486
  949. package/vendor/librocksdb/vendor/rocksdb/utilities/transactions/write_unprepared_txn_db.h +0 -105
  950. package/vendor/librocksdb/vendor/rocksdb/utilities/ttl/db_ttl_impl.cc +0 -638
  951. package/vendor/librocksdb/vendor/rocksdb/utilities/ttl/db_ttl_impl.h +0 -239
  952. package/vendor/librocksdb/vendor/rocksdb/utilities/types_util.cc +0 -88
  953. package/vendor/librocksdb/vendor/rocksdb/utilities/wal_filter.cc +0 -22
  954. package/vendor/librocksdb/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index.cc +0 -1134
  955. package/vendor/librocksdb/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc +0 -934
  956. package/vendor/librocksdb/vendor/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.h +0 -468
@@ -1,1249 +0,0 @@
1
- // Copyright (c) 2011-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
- #include "db/external_sst_file_ingestion_job.h"
7
-
8
- #include <algorithm>
9
- #include <cinttypes>
10
- #include <string>
11
- #include <unordered_set>
12
- #include <vector>
13
-
14
- #include "db/db_impl/db_impl.h"
15
- #include "db/version_edit.h"
16
- #include "file/file_util.h"
17
- #include "file/random_access_file_reader.h"
18
- #include "logging/logging.h"
19
- #include "table/merging_iterator.h"
20
- #include "table/sst_file_writer_collectors.h"
21
- #include "table/table_builder.h"
22
- #include "table/unique_id_impl.h"
23
- #include "test_util/sync_point.h"
24
- #include "util/udt_util.h"
25
-
26
- namespace ROCKSDB_NAMESPACE {
27
-
28
- Status ExternalSstFileIngestionJob::Prepare(
29
- const std::vector<std::string>& external_files_paths,
30
- const std::vector<std::string>& files_checksums,
31
- const std::vector<std::string>& files_checksum_func_names,
32
- const Temperature& file_temperature, uint64_t next_file_number,
33
- SuperVersion* sv) {
34
- Status status;
35
-
36
- // Read the information of files we are ingesting
37
- for (const std::string& file_path : external_files_paths) {
38
- IngestedFileInfo file_to_ingest;
39
- // For temperature, first assume it matches provided hint
40
- file_to_ingest.file_temperature = file_temperature;
41
- status =
42
- GetIngestedFileInfo(file_path, next_file_number++, &file_to_ingest, sv);
43
- if (!status.ok()) {
44
- return status;
45
- }
46
-
47
- // Files generated in another DB or CF may have a different column family
48
- // ID, so we let it pass here.
49
- if (file_to_ingest.cf_id !=
50
- TablePropertiesCollectorFactory::Context::kUnknownColumnFamily &&
51
- file_to_ingest.cf_id != cfd_->GetID() &&
52
- !ingestion_options_.allow_db_generated_files) {
53
- return Status::InvalidArgument(
54
- "External file column family id don't match");
55
- }
56
-
57
- if (file_to_ingest.num_entries == 0 &&
58
- file_to_ingest.num_range_deletions == 0) {
59
- return Status::InvalidArgument("File contain no entries");
60
- }
61
-
62
- if (!file_to_ingest.smallest_internal_key.Valid() ||
63
- !file_to_ingest.largest_internal_key.Valid()) {
64
- return Status::Corruption("Generated table have corrupted keys");
65
- }
66
-
67
- files_to_ingest_.emplace_back(std::move(file_to_ingest));
68
- }
69
-
70
- const Comparator* ucmp = cfd_->internal_comparator().user_comparator();
71
- auto num_files = files_to_ingest_.size();
72
- if (num_files == 0) {
73
- return Status::InvalidArgument("The list of files is empty");
74
- } else if (num_files > 1) {
75
- // Verify that passed files don't have overlapping ranges
76
- autovector<const IngestedFileInfo*> sorted_files;
77
- for (size_t i = 0; i < num_files; i++) {
78
- sorted_files.push_back(&files_to_ingest_[i]);
79
- }
80
-
81
- std::sort(
82
- sorted_files.begin(), sorted_files.end(),
83
- [&ucmp](const IngestedFileInfo* info1, const IngestedFileInfo* info2) {
84
- return sstableKeyCompare(ucmp, info1->smallest_internal_key,
85
- info2->smallest_internal_key) < 0;
86
- });
87
-
88
- for (size_t i = 0; i + 1 < num_files; i++) {
89
- if (sstableKeyCompare(ucmp, sorted_files[i]->largest_internal_key,
90
- sorted_files[i + 1]->smallest_internal_key) >= 0) {
91
- files_overlap_ = true;
92
- break;
93
- }
94
- }
95
- }
96
-
97
- if (ingestion_options_.ingest_behind && files_overlap_) {
98
- return Status::NotSupported(
99
- "Files with overlapping ranges cannot be ingested with ingestion "
100
- "behind mode.");
101
- }
102
-
103
- if (ucmp->timestamp_size() > 0 && files_overlap_) {
104
- return Status::NotSupported(
105
- "Files with overlapping ranges cannot be ingested to column "
106
- "family with user-defined timestamp enabled.");
107
- }
108
-
109
- // Copy/Move external files into DB
110
- std::unordered_set<size_t> ingestion_path_ids;
111
- for (IngestedFileInfo& f : files_to_ingest_) {
112
- f.copy_file = false;
113
- const std::string path_outside_db = f.external_file_path;
114
- const std::string path_inside_db = TableFileName(
115
- cfd_->ioptions()->cf_paths, f.fd.GetNumber(), f.fd.GetPathId());
116
- if (ingestion_options_.move_files) {
117
- assert(!ingestion_options_.allow_db_generated_files);
118
- status =
119
- fs_->LinkFile(path_outside_db, path_inside_db, IOOptions(), nullptr);
120
- if (status.ok()) {
121
- // It is unsafe to assume application had sync the file and file
122
- // directory before ingest the file. For integrity of RocksDB we need
123
- // to sync the file.
124
- std::unique_ptr<FSWritableFile> file_to_sync;
125
- Status s = fs_->ReopenWritableFile(path_inside_db, env_options_,
126
- &file_to_sync, nullptr);
127
- TEST_SYNC_POINT_CALLBACK("ExternalSstFileIngestionJob::Prepare:Reopen",
128
- &s);
129
- // Some file systems (especially remote/distributed) don't support
130
- // reopening a file for writing and don't require reopening and
131
- // syncing the file. Ignore the NotSupported error in that case.
132
- if (!s.IsNotSupported()) {
133
- status = s;
134
- if (status.ok()) {
135
- TEST_SYNC_POINT(
136
- "ExternalSstFileIngestionJob::BeforeSyncIngestedFile");
137
- status = SyncIngestedFile(file_to_sync.get());
138
- TEST_SYNC_POINT(
139
- "ExternalSstFileIngestionJob::AfterSyncIngestedFile");
140
- if (!status.ok()) {
141
- ROCKS_LOG_WARN(db_options_.info_log,
142
- "Failed to sync ingested file %s: %s",
143
- path_inside_db.c_str(), status.ToString().c_str());
144
- }
145
- }
146
- }
147
- } else if (status.IsNotSupported() &&
148
- ingestion_options_.failed_move_fall_back_to_copy) {
149
- // Original file is on a different FS, use copy instead of hard linking.
150
- f.copy_file = true;
151
- ROCKS_LOG_INFO(db_options_.info_log,
152
- "Tried to link file %s but it's not supported : %s",
153
- path_outside_db.c_str(), status.ToString().c_str());
154
- }
155
- } else {
156
- f.copy_file = true;
157
- }
158
-
159
- if (f.copy_file) {
160
- TEST_SYNC_POINT_CALLBACK("ExternalSstFileIngestionJob::Prepare:CopyFile",
161
- nullptr);
162
- // Always determining the destination temperature from the ingested-to
163
- // level would be difficult because in general we only find out the level
164
- // ingested to later, during Run().
165
- // However, we can guarantee "last level" temperature for when the user
166
- // requires ingestion to the last level.
167
- Temperature dst_temp =
168
- (ingestion_options_.ingest_behind ||
169
- ingestion_options_.fail_if_not_bottommost_level)
170
- ? sv->mutable_cf_options.last_level_temperature
171
- : sv->mutable_cf_options.default_write_temperature;
172
- // Note: CopyFile also syncs the new file.
173
- status = CopyFile(fs_.get(), path_outside_db, f.file_temperature,
174
- path_inside_db, dst_temp, 0, db_options_.use_fsync,
175
- io_tracer_);
176
- // The destination of the copy will be ingested
177
- f.file_temperature = dst_temp;
178
- } else {
179
- // Note: we currently assume that linking files does not cross
180
- // temperatures, so no need to change f.file_temperature
181
- }
182
- TEST_SYNC_POINT("ExternalSstFileIngestionJob::Prepare:FileAdded");
183
- if (!status.ok()) {
184
- break;
185
- }
186
- f.internal_file_path = path_inside_db;
187
- // Initialize the checksum information of ingested files.
188
- f.file_checksum = kUnknownFileChecksum;
189
- f.file_checksum_func_name = kUnknownFileChecksumFuncName;
190
- ingestion_path_ids.insert(f.fd.GetPathId());
191
- }
192
-
193
- TEST_SYNC_POINT("ExternalSstFileIngestionJob::BeforeSyncDir");
194
- if (status.ok()) {
195
- for (auto path_id : ingestion_path_ids) {
196
- status = directories_->GetDataDir(path_id)->FsyncWithDirOptions(
197
- IOOptions(), nullptr,
198
- DirFsyncOptions(DirFsyncOptions::FsyncReason::kNewFileSynced));
199
- if (!status.ok()) {
200
- ROCKS_LOG_WARN(db_options_.info_log,
201
- "Failed to sync directory %" ROCKSDB_PRIszt
202
- " while ingest file: %s",
203
- path_id, status.ToString().c_str());
204
- break;
205
- }
206
- }
207
- }
208
- TEST_SYNC_POINT("ExternalSstFileIngestionJob::AfterSyncDir");
209
-
210
- // Generate and check the sst file checksum. Note that, if
211
- // IngestExternalFileOptions::write_global_seqno is true, we will not update
212
- // the checksum information in the files_to_ingests_ here, since the file is
213
- // updated with the new global_seqno. After global_seqno is updated, DB will
214
- // generate the new checksum and store it in the Manifest. In all other cases
215
- // if ingestion_options_.write_global_seqno == true and
216
- // verify_file_checksum is false, we only check the checksum function name.
217
- if (status.ok() && db_options_.file_checksum_gen_factory != nullptr) {
218
- if (ingestion_options_.verify_file_checksum == false &&
219
- files_checksums.size() == files_to_ingest_.size() &&
220
- files_checksum_func_names.size() == files_to_ingest_.size()) {
221
- // Only when verify_file_checksum == false and the checksum for ingested
222
- // files are provided, DB will use the provided checksum and does not
223
- // generate the checksum for ingested files.
224
- need_generate_file_checksum_ = false;
225
- } else {
226
- need_generate_file_checksum_ = true;
227
- }
228
- FileChecksumGenContext gen_context;
229
- std::unique_ptr<FileChecksumGenerator> file_checksum_gen =
230
- db_options_.file_checksum_gen_factory->CreateFileChecksumGenerator(
231
- gen_context);
232
- std::vector<std::string> generated_checksums;
233
- std::vector<std::string> generated_checksum_func_names;
234
- // Step 1: generate the checksum for ingested sst file.
235
- if (need_generate_file_checksum_) {
236
- for (size_t i = 0; i < files_to_ingest_.size(); i++) {
237
- std::string generated_checksum;
238
- std::string generated_checksum_func_name;
239
- std::string requested_checksum_func_name;
240
- // TODO: rate limit file reads for checksum calculation during file
241
- // ingestion.
242
- // TODO: plumb Env::IOActivity
243
- ReadOptions ro;
244
- IOStatus io_s = GenerateOneFileChecksum(
245
- fs_.get(), files_to_ingest_[i].internal_file_path,
246
- db_options_.file_checksum_gen_factory.get(),
247
- requested_checksum_func_name, &generated_checksum,
248
- &generated_checksum_func_name,
249
- ingestion_options_.verify_checksums_readahead_size,
250
- db_options_.allow_mmap_reads, io_tracer_,
251
- db_options_.rate_limiter.get(), ro, db_options_.stats,
252
- db_options_.clock);
253
- if (!io_s.ok()) {
254
- status = io_s;
255
- ROCKS_LOG_WARN(db_options_.info_log,
256
- "Sst file checksum generation of file: %s failed: %s",
257
- files_to_ingest_[i].internal_file_path.c_str(),
258
- status.ToString().c_str());
259
- break;
260
- }
261
- if (ingestion_options_.write_global_seqno == false) {
262
- files_to_ingest_[i].file_checksum = generated_checksum;
263
- files_to_ingest_[i].file_checksum_func_name =
264
- generated_checksum_func_name;
265
- }
266
- generated_checksums.push_back(generated_checksum);
267
- generated_checksum_func_names.push_back(generated_checksum_func_name);
268
- }
269
- }
270
-
271
- // Step 2: based on the verify_file_checksum and ingested checksum
272
- // information, do the verification.
273
- if (status.ok()) {
274
- if (files_checksums.size() == files_to_ingest_.size() &&
275
- files_checksum_func_names.size() == files_to_ingest_.size()) {
276
- // Verify the checksum and checksum function name.
277
- if (ingestion_options_.verify_file_checksum) {
278
- for (size_t i = 0; i < files_to_ingest_.size(); i++) {
279
- if (files_checksum_func_names[i] !=
280
- generated_checksum_func_names[i]) {
281
- status = Status::InvalidArgument(
282
- "Checksum function name does not match with the checksum "
283
- "function name of this DB");
284
- ROCKS_LOG_WARN(
285
- db_options_.info_log,
286
- "Sst file checksum verification of file: %s failed: %s",
287
- external_files_paths[i].c_str(), status.ToString().c_str());
288
- break;
289
- }
290
- if (files_checksums[i] != generated_checksums[i]) {
291
- status = Status::Corruption(
292
- "Ingested checksum does not match with the generated "
293
- "checksum");
294
- ROCKS_LOG_WARN(
295
- db_options_.info_log,
296
- "Sst file checksum verification of file: %s failed: %s",
297
- files_to_ingest_[i].internal_file_path.c_str(),
298
- status.ToString().c_str());
299
- break;
300
- }
301
- }
302
- } else {
303
- // If verify_file_checksum is not enabled, we only verify the
304
- // checksum function name. If it does not match, fail the ingestion.
305
- // If matches, we trust the ingested checksum information and store
306
- // in the Manifest.
307
- for (size_t i = 0; i < files_to_ingest_.size(); i++) {
308
- if (files_checksum_func_names[i] != file_checksum_gen->Name()) {
309
- status = Status::InvalidArgument(
310
- "Checksum function name does not match with the checksum "
311
- "function name of this DB");
312
- ROCKS_LOG_WARN(
313
- db_options_.info_log,
314
- "Sst file checksum verification of file: %s failed: %s",
315
- external_files_paths[i].c_str(), status.ToString().c_str());
316
- break;
317
- }
318
- files_to_ingest_[i].file_checksum = files_checksums[i];
319
- files_to_ingest_[i].file_checksum_func_name =
320
- files_checksum_func_names[i];
321
- }
322
- }
323
- } else if (files_checksums.size() != files_checksum_func_names.size() ||
324
- files_checksums.size() != 0) {
325
- // The checksum or checksum function name vector are not both empty
326
- // and they are incomplete.
327
- status = Status::InvalidArgument(
328
- "The checksum information of ingested sst files are nonempty and "
329
- "the size of checksums or the size of the checksum function "
330
- "names "
331
- "does not match with the number of ingested sst files");
332
- ROCKS_LOG_WARN(
333
- db_options_.info_log,
334
- "The ingested sst files checksum information is incomplete: %s",
335
- status.ToString().c_str());
336
- }
337
- }
338
- }
339
-
340
- return status;
341
- }
342
-
343
- Status ExternalSstFileIngestionJob::NeedsFlush(bool* flush_needed,
344
- SuperVersion* super_version) {
345
- size_t n = files_to_ingest_.size();
346
- autovector<UserKeyRange> ranges;
347
- ranges.reserve(n);
348
- for (const IngestedFileInfo& file_to_ingest : files_to_ingest_) {
349
- ranges.emplace_back(file_to_ingest.start_ukey, file_to_ingest.limit_ukey);
350
- }
351
- Status status = cfd_->RangesOverlapWithMemtables(
352
- ranges, super_version, db_options_.allow_data_in_errors, flush_needed);
353
- if (status.ok() && *flush_needed) {
354
- if (!ingestion_options_.allow_blocking_flush) {
355
- status = Status::InvalidArgument("External file requires flush");
356
- }
357
- auto ucmp = cfd_->user_comparator();
358
- assert(ucmp);
359
- if (ucmp->timestamp_size() > 0) {
360
- status = Status::InvalidArgument(
361
- "Column family enables user-defined timestamps, please make "
362
- "sure the key range (without timestamp) of external file does not "
363
- "overlap with key range in the memtables.");
364
- }
365
- }
366
- return status;
367
- }
368
-
369
- // REQUIRES: we have become the only writer by entering both write_thread_ and
370
- // nonmem_write_thread_
371
- Status ExternalSstFileIngestionJob::Run() {
372
- Status status;
373
- SuperVersion* super_version = cfd_->GetSuperVersion();
374
- #ifndef NDEBUG
375
- // We should never run the job with a memtable that is overlapping
376
- // with the files we are ingesting
377
- bool need_flush = false;
378
- status = NeedsFlush(&need_flush, super_version);
379
- if (!status.ok()) {
380
- return status;
381
- }
382
- if (need_flush) {
383
- return Status::TryAgain("need_flush");
384
- }
385
- assert(status.ok() && need_flush == false);
386
- #endif
387
-
388
- bool force_global_seqno = false;
389
-
390
- if (ingestion_options_.snapshot_consistency && !db_snapshots_->empty()) {
391
- // We need to assign a global sequence number to all the files even
392
- // if the don't overlap with any ranges since we have snapshots
393
- force_global_seqno = true;
394
- }
395
- // It is safe to use this instead of LastAllocatedSequence since we are
396
- // the only active writer, and hence they are equal
397
- SequenceNumber last_seqno = versions_->LastSequence();
398
- edit_.SetColumnFamily(cfd_->GetID());
399
- // The levels that the files will be ingested into
400
-
401
- for (IngestedFileInfo& f : files_to_ingest_) {
402
- SequenceNumber assigned_seqno = 0;
403
- if (ingestion_options_.ingest_behind) {
404
- status = CheckLevelForIngestedBehindFile(&f);
405
- } else {
406
- status = AssignLevelAndSeqnoForIngestedFile(
407
- super_version, force_global_seqno, cfd_->ioptions()->compaction_style,
408
- last_seqno, &f, &assigned_seqno);
409
- }
410
-
411
- // Modify the smallest/largest internal key to include the sequence number
412
- // that we just learned. Only overwrite sequence number zero. There could
413
- // be a nonzero sequence number already to indicate a range tombstone's
414
- // exclusive endpoint.
415
- ParsedInternalKey smallest_parsed, largest_parsed;
416
- if (status.ok()) {
417
- status = ParseInternalKey(*f.smallest_internal_key.rep(),
418
- &smallest_parsed, false /* log_err_key */);
419
- }
420
- if (status.ok()) {
421
- status = ParseInternalKey(*f.largest_internal_key.rep(), &largest_parsed,
422
- false /* log_err_key */);
423
- }
424
- if (!status.ok()) {
425
- return status;
426
- }
427
- if (smallest_parsed.sequence == 0 && assigned_seqno != 0) {
428
- UpdateInternalKey(f.smallest_internal_key.rep(), assigned_seqno,
429
- smallest_parsed.type);
430
- }
431
- if (largest_parsed.sequence == 0 && assigned_seqno != 0) {
432
- UpdateInternalKey(f.largest_internal_key.rep(), assigned_seqno,
433
- largest_parsed.type);
434
- }
435
-
436
- status = AssignGlobalSeqnoForIngestedFile(&f, assigned_seqno);
437
- if (!status.ok()) {
438
- return status;
439
- }
440
- TEST_SYNC_POINT_CALLBACK("ExternalSstFileIngestionJob::Run",
441
- &assigned_seqno);
442
- assert(assigned_seqno == 0 || assigned_seqno == last_seqno + 1);
443
- if (assigned_seqno > last_seqno) {
444
- last_seqno = assigned_seqno;
445
- ++consumed_seqno_count_;
446
- }
447
-
448
- status = GenerateChecksumForIngestedFile(&f);
449
- if (!status.ok()) {
450
- return status;
451
- }
452
-
453
- // We use the import time as the ancester time. This is the time the data
454
- // is written to the database.
455
- int64_t temp_current_time = 0;
456
- uint64_t current_time = kUnknownFileCreationTime;
457
- uint64_t oldest_ancester_time = kUnknownOldestAncesterTime;
458
- if (clock_->GetCurrentTime(&temp_current_time).ok()) {
459
- current_time = oldest_ancester_time =
460
- static_cast<uint64_t>(temp_current_time);
461
- }
462
- uint64_t tail_size = 0;
463
- bool contain_no_data_blocks = f.table_properties.num_entries > 0 &&
464
- (f.table_properties.num_entries ==
465
- f.table_properties.num_range_deletions);
466
- if (f.table_properties.tail_start_offset > 0 || contain_no_data_blocks) {
467
- uint64_t file_size = f.fd.GetFileSize();
468
- assert(f.table_properties.tail_start_offset <= file_size);
469
- tail_size = file_size - f.table_properties.tail_start_offset;
470
- }
471
-
472
- FileMetaData f_metadata(
473
- f.fd.GetNumber(), f.fd.GetPathId(), f.fd.GetFileSize(),
474
- f.smallest_internal_key, f.largest_internal_key, f.assigned_seqno,
475
- f.assigned_seqno, false, f.file_temperature, kInvalidBlobFileNumber,
476
- oldest_ancester_time, current_time,
477
- ingestion_options_.ingest_behind
478
- ? kReservedEpochNumberForFileIngestedBehind
479
- : cfd_->NewEpochNumber(),
480
- f.file_checksum, f.file_checksum_func_name, f.unique_id, 0, tail_size,
481
- f.user_defined_timestamps_persisted);
482
- f_metadata.temperature = f.file_temperature;
483
- edit_.AddFile(f.picked_level, f_metadata);
484
- }
485
-
486
- CreateEquivalentFileIngestingCompactions();
487
- return status;
488
- }
489
-
490
- void ExternalSstFileIngestionJob::CreateEquivalentFileIngestingCompactions() {
491
- // A map from output level to input of compactions equivalent to this
492
- // ingestion job.
493
- // TODO: simplify below logic to creating compaction per ingested file
494
- // instead of per output level, once we figure out how to treat ingested files
495
- // with adjacent range deletion tombstones to same output level in the same
496
- // job as non-overlapping compactions.
497
- std::map<int, CompactionInputFiles>
498
- output_level_to_file_ingesting_compaction_input;
499
-
500
- for (const auto& pair : edit_.GetNewFiles()) {
501
- int output_level = pair.first;
502
- const FileMetaData& f_metadata = pair.second;
503
-
504
- CompactionInputFiles& input =
505
- output_level_to_file_ingesting_compaction_input[output_level];
506
- if (input.files.empty()) {
507
- // Treat the source level of ingested files to be level 0
508
- input.level = 0;
509
- }
510
-
511
- compaction_input_metdatas_.push_back(new FileMetaData(f_metadata));
512
- input.files.push_back(compaction_input_metdatas_.back());
513
- }
514
-
515
- for (const auto& pair : output_level_to_file_ingesting_compaction_input) {
516
- int output_level = pair.first;
517
- const CompactionInputFiles& input = pair.second;
518
-
519
- const auto& mutable_cf_options = *(cfd_->GetLatestMutableCFOptions());
520
- file_ingesting_compactions_.push_back(new Compaction(
521
- cfd_->current()->storage_info(), *cfd_->ioptions(), mutable_cf_options,
522
- mutable_db_options_, {input}, output_level,
523
- MaxFileSizeForLevel(
524
- mutable_cf_options, output_level,
525
- cfd_->ioptions()->compaction_style) /* output file size
526
- limit,
527
- * not applicable
528
- */
529
- ,
530
- LLONG_MAX /* max compaction bytes, not applicable */,
531
- 0 /* output path ID, not applicable */, mutable_cf_options.compression,
532
- mutable_cf_options.compression_opts,
533
- mutable_cf_options.default_write_temperature,
534
- 0 /* max_subcompaction, not applicable */,
535
- {} /* grandparents, not applicable */, false /* is manual */,
536
- "" /* trim_ts */, -1 /* score, not applicable */,
537
- false /* is deletion compaction, not applicable */,
538
- files_overlap_ /* l0_files_might_overlap, not applicable */,
539
- CompactionReason::kExternalSstIngestion));
540
- }
541
- }
542
-
543
- void ExternalSstFileIngestionJob::RegisterRange() {
544
- for (const auto& c : file_ingesting_compactions_) {
545
- cfd_->compaction_picker()->RegisterCompaction(c);
546
- }
547
- }
548
-
549
- void ExternalSstFileIngestionJob::UnregisterRange() {
550
- for (const auto& c : file_ingesting_compactions_) {
551
- cfd_->compaction_picker()->UnregisterCompaction(c);
552
- delete c;
553
- }
554
- file_ingesting_compactions_.clear();
555
-
556
- for (const auto& f : compaction_input_metdatas_) {
557
- delete f;
558
- }
559
- compaction_input_metdatas_.clear();
560
- }
561
-
562
- void ExternalSstFileIngestionJob::UpdateStats() {
563
- // Update internal stats for new ingested files
564
- uint64_t total_keys = 0;
565
- uint64_t total_l0_files = 0;
566
- uint64_t total_time = clock_->NowMicros() - job_start_time_;
567
-
568
- EventLoggerStream stream = event_logger_->Log();
569
- stream << "event"
570
- << "ingest_finished";
571
- stream << "files_ingested";
572
- stream.StartArray();
573
-
574
- for (IngestedFileInfo& f : files_to_ingest_) {
575
- InternalStats::CompactionStats stats(
576
- CompactionReason::kExternalSstIngestion, 1);
577
- stats.micros = total_time;
578
- // If actual copy occurred for this file, then we need to count the file
579
- // size as the actual bytes written. If the file was linked, then we ignore
580
- // the bytes written for file metadata.
581
- // TODO (yanqin) maybe account for file metadata bytes for exact accuracy?
582
- if (f.copy_file) {
583
- stats.bytes_written = f.fd.GetFileSize();
584
- } else {
585
- stats.bytes_moved = f.fd.GetFileSize();
586
- }
587
- stats.num_output_files = 1;
588
- cfd_->internal_stats()->AddCompactionStats(f.picked_level,
589
- Env::Priority::USER, stats);
590
- cfd_->internal_stats()->AddCFStats(InternalStats::BYTES_INGESTED_ADD_FILE,
591
- f.fd.GetFileSize());
592
- total_keys += f.num_entries;
593
- if (f.picked_level == 0) {
594
- total_l0_files += 1;
595
- }
596
- ROCKS_LOG_INFO(
597
- db_options_.info_log,
598
- "[AddFile] External SST file %s was ingested in L%d with path %s "
599
- "(global_seqno=%" PRIu64 ")\n",
600
- f.external_file_path.c_str(), f.picked_level,
601
- f.internal_file_path.c_str(), f.assigned_seqno);
602
- stream << "file" << f.internal_file_path << "level" << f.picked_level;
603
- }
604
- stream.EndArray();
605
-
606
- stream << "lsm_state";
607
- stream.StartArray();
608
- auto vstorage = cfd_->current()->storage_info();
609
- for (int level = 0; level < vstorage->num_levels(); ++level) {
610
- stream << vstorage->NumLevelFiles(level);
611
- }
612
- stream.EndArray();
613
-
614
- cfd_->internal_stats()->AddCFStats(InternalStats::INGESTED_NUM_KEYS_TOTAL,
615
- total_keys);
616
- cfd_->internal_stats()->AddCFStats(InternalStats::INGESTED_NUM_FILES_TOTAL,
617
- files_to_ingest_.size());
618
- cfd_->internal_stats()->AddCFStats(
619
- InternalStats::INGESTED_LEVEL0_NUM_FILES_TOTAL, total_l0_files);
620
- }
621
-
622
- void ExternalSstFileIngestionJob::Cleanup(const Status& status) {
623
- IOOptions io_opts;
624
- if (!status.ok()) {
625
- // We failed to add the files to the database
626
- // remove all the files we copied
627
- DeleteInternalFiles();
628
- consumed_seqno_count_ = 0;
629
- files_overlap_ = false;
630
- } else if (status.ok() && ingestion_options_.move_files) {
631
- // The files were moved and added successfully, remove original file links
632
- for (IngestedFileInfo& f : files_to_ingest_) {
633
- Status s = fs_->DeleteFile(f.external_file_path, io_opts, nullptr);
634
- if (!s.ok()) {
635
- ROCKS_LOG_WARN(
636
- db_options_.info_log,
637
- "%s was added to DB successfully but failed to remove original "
638
- "file link : %s",
639
- f.external_file_path.c_str(), s.ToString().c_str());
640
- }
641
- }
642
- }
643
- }
644
-
645
- void ExternalSstFileIngestionJob::DeleteInternalFiles() {
646
- IOOptions io_opts;
647
- for (IngestedFileInfo& f : files_to_ingest_) {
648
- if (f.internal_file_path.empty()) {
649
- continue;
650
- }
651
- Status s = fs_->DeleteFile(f.internal_file_path, io_opts, nullptr);
652
- if (!s.ok()) {
653
- ROCKS_LOG_WARN(db_options_.info_log,
654
- "AddFile() clean up for file %s failed : %s",
655
- f.internal_file_path.c_str(), s.ToString().c_str());
656
- }
657
- }
658
- }
659
-
660
- Status ExternalSstFileIngestionJob::ResetTableReader(
661
- const std::string& external_file, uint64_t new_file_number,
662
- bool user_defined_timestamps_persisted, SuperVersion* sv,
663
- IngestedFileInfo* file_to_ingest,
664
- std::unique_ptr<TableReader>* table_reader) {
665
- std::unique_ptr<FSRandomAccessFile> sst_file;
666
- FileOptions fo{env_options_};
667
- fo.temperature = file_to_ingest->file_temperature;
668
- Status status =
669
- fs_->NewRandomAccessFile(external_file, fo, &sst_file, nullptr);
670
- if (!status.ok()) {
671
- return status;
672
- }
673
- Temperature updated_temp = sst_file->GetTemperature();
674
- if (updated_temp != Temperature::kUnknown &&
675
- updated_temp != file_to_ingest->file_temperature) {
676
- // The hint was missing or wrong. Track temperature reported by storage.
677
- file_to_ingest->file_temperature = updated_temp;
678
- }
679
- std::unique_ptr<RandomAccessFileReader> sst_file_reader(
680
- new RandomAccessFileReader(std::move(sst_file), external_file,
681
- nullptr /*Env*/, io_tracer_));
682
- table_reader->reset();
683
- status = cfd_->ioptions()->table_factory->NewTableReader(
684
- TableReaderOptions(
685
- *cfd_->ioptions(), sv->mutable_cf_options.prefix_extractor,
686
- env_options_, cfd_->internal_comparator(),
687
- sv->mutable_cf_options.block_protection_bytes_per_key,
688
- /*skip_filters*/ false, /*immortal*/ false,
689
- /*force_direct_prefetch*/ false, /*level*/ -1,
690
- /*block_cache_tracer*/ nullptr,
691
- /*max_file_size_for_l0_meta_pin*/ 0, versions_->DbSessionId(),
692
- /*cur_file_num*/ new_file_number,
693
- /* unique_id */ {}, /* largest_seqno */ 0,
694
- /* tail_size */ 0, user_defined_timestamps_persisted),
695
- std::move(sst_file_reader), file_to_ingest->file_size, table_reader);
696
- return status;
697
- }
698
-
699
- Status ExternalSstFileIngestionJob::SanityCheckTableProperties(
700
- const std::string& external_file, uint64_t new_file_number,
701
- SuperVersion* sv, IngestedFileInfo* file_to_ingest,
702
- std::unique_ptr<TableReader>* table_reader) {
703
- // Get the external file properties
704
- auto props = table_reader->get()->GetTableProperties();
705
- assert(props.get());
706
- const auto& uprops = props->user_collected_properties;
707
-
708
- // Get table version
709
- auto version_iter = uprops.find(ExternalSstFilePropertyNames::kVersion);
710
- if (version_iter == uprops.end()) {
711
- if (!ingestion_options_.allow_db_generated_files) {
712
- return Status::Corruption("External file version not found");
713
- } else {
714
- // 0 is special version for when a file from live DB does not have the
715
- // version table property
716
- file_to_ingest->version = 0;
717
- }
718
- } else {
719
- file_to_ingest->version = DecodeFixed32(version_iter->second.c_str());
720
- }
721
-
722
- auto seqno_iter = uprops.find(ExternalSstFilePropertyNames::kGlobalSeqno);
723
- if (file_to_ingest->version == 2) {
724
- // version 2 imply that we have global sequence number
725
- if (seqno_iter == uprops.end()) {
726
- return Status::Corruption(
727
- "External file global sequence number not found");
728
- }
729
-
730
- // Set the global sequence number
731
- file_to_ingest->original_seqno = DecodeFixed64(seqno_iter->second.c_str());
732
- if (props->external_sst_file_global_seqno_offset == 0) {
733
- file_to_ingest->global_seqno_offset = 0;
734
- return Status::Corruption("Was not able to find file global seqno field");
735
- }
736
- file_to_ingest->global_seqno_offset =
737
- static_cast<size_t>(props->external_sst_file_global_seqno_offset);
738
- } else if (file_to_ingest->version == 1) {
739
- // SST file V1 should not have global seqno field
740
- assert(seqno_iter == uprops.end());
741
- file_to_ingest->original_seqno = 0;
742
- if (ingestion_options_.allow_blocking_flush ||
743
- ingestion_options_.allow_global_seqno) {
744
- return Status::InvalidArgument(
745
- "External SST file V1 does not support global seqno");
746
- }
747
- } else if (file_to_ingest->version == 0) {
748
- // allow_db_generated_files is true
749
- assert(seqno_iter == uprops.end());
750
- file_to_ingest->original_seqno = 0;
751
- file_to_ingest->global_seqno_offset = 0;
752
- } else {
753
- return Status::InvalidArgument("External file version " +
754
- std::to_string(file_to_ingest->version) +
755
- " is not supported");
756
- }
757
-
758
- file_to_ingest->cf_id = static_cast<uint32_t>(props->column_family_id);
759
- // This assignment works fine even though `table_reader` may later be reset,
760
- // since that will not affect how table properties are parsed, and this
761
- // assignment is making a copy.
762
- file_to_ingest->table_properties = *props;
763
-
764
- // Get number of entries in table
765
- file_to_ingest->num_entries = props->num_entries;
766
- file_to_ingest->num_range_deletions = props->num_range_deletions;
767
-
768
- // Validate table properties related to comparator name and user defined
769
- // timestamps persisted flag.
770
- file_to_ingest->user_defined_timestamps_persisted =
771
- static_cast<bool>(props->user_defined_timestamps_persisted);
772
- bool mark_sst_file_has_no_udt = false;
773
- Status s = ValidateUserDefinedTimestampsOptions(
774
- cfd_->user_comparator(), props->comparator_name,
775
- cfd_->ioptions()->persist_user_defined_timestamps,
776
- file_to_ingest->user_defined_timestamps_persisted,
777
- &mark_sst_file_has_no_udt);
778
- if (s.ok() && mark_sst_file_has_no_udt) {
779
- // A column family that enables user-defined timestamps in Memtable only
780
- // feature can also ingest external files created by a setting that disables
781
- // user-defined timestamps. In that case, we need to re-mark the
782
- // user_defined_timestamps_persisted flag for the file.
783
- file_to_ingest->user_defined_timestamps_persisted = false;
784
- } else if (!s.ok()) {
785
- return s;
786
- }
787
-
788
- // `TableReader` is initialized with `user_defined_timestamps_persisted` flag
789
- // to be true. If its value changed to false after this sanity check, we
790
- // need to reset the `TableReader`.
791
- auto ucmp = cfd_->user_comparator();
792
- assert(ucmp);
793
- if (ucmp->timestamp_size() > 0 &&
794
- !file_to_ingest->user_defined_timestamps_persisted) {
795
- s = ResetTableReader(external_file, new_file_number,
796
- file_to_ingest->user_defined_timestamps_persisted, sv,
797
- file_to_ingest, table_reader);
798
- }
799
- return s;
800
- }
801
-
802
- Status ExternalSstFileIngestionJob::GetIngestedFileInfo(
803
- const std::string& external_file, uint64_t new_file_number,
804
- IngestedFileInfo* file_to_ingest, SuperVersion* sv) {
805
- file_to_ingest->external_file_path = external_file;
806
-
807
- // Get external file size
808
- Status status = fs_->GetFileSize(external_file, IOOptions(),
809
- &file_to_ingest->file_size, nullptr);
810
- if (!status.ok()) {
811
- return status;
812
- }
813
-
814
- // Assign FD with number
815
- file_to_ingest->fd =
816
- FileDescriptor(new_file_number, 0, file_to_ingest->file_size);
817
-
818
- // Create TableReader for external file
819
- std::unique_ptr<TableReader> table_reader;
820
- // Initially create the `TableReader` with flag
821
- // `user_defined_timestamps_persisted` to be true since that's the most common
822
- // case
823
- status = ResetTableReader(external_file, new_file_number,
824
- /*user_defined_timestamps_persisted=*/true, sv,
825
- file_to_ingest, &table_reader);
826
- if (!status.ok()) {
827
- return status;
828
- }
829
-
830
- status = SanityCheckTableProperties(external_file, new_file_number, sv,
831
- file_to_ingest, &table_reader);
832
- if (!status.ok()) {
833
- return status;
834
- }
835
-
836
- if (ingestion_options_.verify_checksums_before_ingest) {
837
- // If customized readahead size is needed, we can pass a user option
838
- // all the way to here. Right now we just rely on the default readahead
839
- // to keep things simple.
840
- // TODO: plumb Env::IOActivity, Env::IOPriority
841
- ReadOptions ro;
842
- ro.readahead_size = ingestion_options_.verify_checksums_readahead_size;
843
- status = table_reader->VerifyChecksum(
844
- ro, TableReaderCaller::kExternalSSTIngestion);
845
- if (!status.ok()) {
846
- return status;
847
- }
848
- }
849
-
850
- ParsedInternalKey key;
851
- // TODO: plumb Env::IOActivity, Env::IOPriority
852
- ReadOptions ro;
853
- std::unique_ptr<InternalIterator> iter(table_reader->NewIterator(
854
- ro, sv->mutable_cf_options.prefix_extractor.get(), /*arena=*/nullptr,
855
- /*skip_filters=*/false, TableReaderCaller::kExternalSSTIngestion));
856
-
857
- // Get first (smallest) and last (largest) key from file.
858
- file_to_ingest->smallest_internal_key =
859
- InternalKey("", 0, ValueType::kTypeValue);
860
- file_to_ingest->largest_internal_key =
861
- InternalKey("", 0, ValueType::kTypeValue);
862
- bool bounds_set = false;
863
- bool allow_data_in_errors = db_options_.allow_data_in_errors;
864
- iter->SeekToFirst();
865
- if (iter->Valid()) {
866
- Status pik_status =
867
- ParseInternalKey(iter->key(), &key, allow_data_in_errors);
868
- if (!pik_status.ok()) {
869
- return Status::Corruption("Corrupted key in external file. ",
870
- pik_status.getState());
871
- }
872
- if (key.sequence != 0) {
873
- return Status::Corruption("External file has non zero sequence number");
874
- }
875
- file_to_ingest->smallest_internal_key.SetFrom(key);
876
-
877
- Slice largest;
878
- if (strcmp(cfd_->ioptions()->table_factory->Name(), "PlainTable") == 0) {
879
- // PlainTable iterator does not support SeekToLast().
880
- largest = iter->key();
881
- for (; iter->Valid(); iter->Next()) {
882
- if (cfd_->internal_comparator().Compare(iter->key(), largest) > 0) {
883
- largest = iter->key();
884
- }
885
- }
886
- if (!iter->status().ok()) {
887
- return iter->status();
888
- }
889
- } else {
890
- iter->SeekToLast();
891
- if (!iter->Valid()) {
892
- if (iter->status().ok()) {
893
- // The file contains at least 1 key since iter is valid after
894
- // SeekToFirst().
895
- return Status::Corruption("Can not find largest key in sst file");
896
- } else {
897
- return iter->status();
898
- }
899
- }
900
- largest = iter->key();
901
- }
902
-
903
- pik_status = ParseInternalKey(largest, &key, allow_data_in_errors);
904
- if (!pik_status.ok()) {
905
- return Status::Corruption("Corrupted key in external file. ",
906
- pik_status.getState());
907
- }
908
- if (key.sequence != 0) {
909
- return Status::Corruption("External file has non zero sequence number");
910
- }
911
- file_to_ingest->largest_internal_key.SetFrom(key);
912
-
913
- bounds_set = true;
914
- } else if (!iter->status().ok()) {
915
- return iter->status();
916
- }
917
- if (ingestion_options_.allow_db_generated_files) {
918
- // Verify that all keys have seqno zero.
919
- // TODO: store largest seqno in table property and validate it instead.
920
- for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
921
- Status pik_status =
922
- ParseInternalKey(iter->key(), &key, allow_data_in_errors);
923
- if (!pik_status.ok()) {
924
- return Status::Corruption("Corrupted key in external file. ",
925
- pik_status.getState());
926
- }
927
- if (key.sequence != 0) {
928
- return Status::NotSupported(
929
- "External file has a key with non zero sequence number.");
930
- }
931
- }
932
- if (!iter->status().ok()) {
933
- return iter->status();
934
- }
935
- }
936
-
937
- std::unique_ptr<InternalIterator> range_del_iter(
938
- table_reader->NewRangeTombstoneIterator(ro));
939
- // We may need to adjust these key bounds, depending on whether any range
940
- // deletion tombstones extend past them.
941
- const Comparator* ucmp = cfd_->user_comparator();
942
- if (range_del_iter != nullptr) {
943
- for (range_del_iter->SeekToFirst(); range_del_iter->Valid();
944
- range_del_iter->Next()) {
945
- Status pik_status =
946
- ParseInternalKey(range_del_iter->key(), &key, allow_data_in_errors);
947
- if (!pik_status.ok()) {
948
- return Status::Corruption("Corrupted key in external file. ",
949
- pik_status.getState());
950
- }
951
- if (key.sequence != 0) {
952
- return Status::Corruption(
953
- "External file has a range deletion with non zero sequence "
954
- "number.");
955
- }
956
- RangeTombstone tombstone(key, range_del_iter->value());
957
-
958
- InternalKey start_key = tombstone.SerializeKey();
959
- if (!bounds_set ||
960
- sstableKeyCompare(ucmp, start_key,
961
- file_to_ingest->smallest_internal_key) < 0) {
962
- file_to_ingest->smallest_internal_key = start_key;
963
- }
964
- InternalKey end_key = tombstone.SerializeEndKey();
965
- if (!bounds_set ||
966
- sstableKeyCompare(ucmp, end_key,
967
- file_to_ingest->largest_internal_key) > 0) {
968
- file_to_ingest->largest_internal_key = end_key;
969
- }
970
- bounds_set = true;
971
- }
972
- }
973
-
974
- const size_t ts_sz = ucmp->timestamp_size();
975
- Slice smallest = file_to_ingest->smallest_internal_key.user_key();
976
- Slice largest = file_to_ingest->largest_internal_key.user_key();
977
- if (ts_sz > 0) {
978
- AppendUserKeyWithMaxTimestamp(&file_to_ingest->start_ukey, smallest, ts_sz);
979
- AppendUserKeyWithMinTimestamp(&file_to_ingest->limit_ukey, largest, ts_sz);
980
- } else {
981
- file_to_ingest->start_ukey.assign(smallest.data(), smallest.size());
982
- file_to_ingest->limit_ukey.assign(largest.data(), largest.size());
983
- }
984
-
985
- auto s =
986
- GetSstInternalUniqueId(file_to_ingest->table_properties.db_id,
987
- file_to_ingest->table_properties.db_session_id,
988
- file_to_ingest->table_properties.orig_file_number,
989
- &(file_to_ingest->unique_id));
990
- if (!s.ok()) {
991
- ROCKS_LOG_WARN(db_options_.info_log,
992
- "Failed to get SST unique id for file %s",
993
- file_to_ingest->internal_file_path.c_str());
994
- file_to_ingest->unique_id = kNullUniqueId64x2;
995
- }
996
-
997
- return status;
998
- }
999
-
1000
- Status ExternalSstFileIngestionJob::AssignLevelAndSeqnoForIngestedFile(
1001
- SuperVersion* sv, bool force_global_seqno, CompactionStyle compaction_style,
1002
- SequenceNumber last_seqno, IngestedFileInfo* file_to_ingest,
1003
- SequenceNumber* assigned_seqno) {
1004
- Status status;
1005
- *assigned_seqno = 0;
1006
- auto ucmp = cfd_->user_comparator();
1007
- const size_t ts_sz = ucmp->timestamp_size();
1008
- if (force_global_seqno || files_overlap_ ||
1009
- compaction_style == kCompactionStyleFIFO) {
1010
- *assigned_seqno = last_seqno + 1;
1011
- // If files overlap, we have to ingest them at level 0.
1012
- if (files_overlap_ || compaction_style == kCompactionStyleFIFO) {
1013
- assert(ts_sz == 0);
1014
- file_to_ingest->picked_level = 0;
1015
- if (ingestion_options_.fail_if_not_bottommost_level &&
1016
- cfd_->NumberLevels() > 1) {
1017
- status = Status::TryAgain(
1018
- "Files cannot be ingested to Lmax. Please make sure key range of "
1019
- "Lmax does not overlap with files to ingest.");
1020
- }
1021
- return status;
1022
- }
1023
- }
1024
-
1025
- bool overlap_with_db = false;
1026
- Arena arena;
1027
- // TODO: plumb Env::IOActivity, Env::IOPriority
1028
- ReadOptions ro;
1029
- ro.total_order_seek = true;
1030
- int target_level = 0;
1031
- auto* vstorage = cfd_->current()->storage_info();
1032
-
1033
- for (int lvl = 0; lvl < cfd_->NumberLevels(); lvl++) {
1034
- if (lvl > 0 && lvl < vstorage->base_level()) {
1035
- continue;
1036
- }
1037
- if (cfd_->RangeOverlapWithCompaction(file_to_ingest->start_ukey,
1038
- file_to_ingest->limit_ukey, lvl)) {
1039
- // We must use L0 or any level higher than `lvl` to be able to overwrite
1040
- // the compaction output keys that we overlap with in this level, We also
1041
- // need to assign this file a seqno to overwrite the compaction output
1042
- // keys in level `lvl`
1043
- overlap_with_db = true;
1044
- break;
1045
- } else if (vstorage->NumLevelFiles(lvl) > 0) {
1046
- bool overlap_with_level = false;
1047
- status = sv->current->OverlapWithLevelIterator(
1048
- ro, env_options_, file_to_ingest->start_ukey,
1049
- file_to_ingest->limit_ukey, lvl, &overlap_with_level);
1050
- if (!status.ok()) {
1051
- return status;
1052
- }
1053
- if (overlap_with_level) {
1054
- // We must use L0 or any level higher than `lvl` to be able to overwrite
1055
- // the keys that we overlap with in this level, We also need to assign
1056
- // this file a seqno to overwrite the existing keys in level `lvl`
1057
- overlap_with_db = true;
1058
- break;
1059
- }
1060
- } else if (compaction_style == kCompactionStyleUniversal) {
1061
- continue;
1062
- }
1063
-
1064
- // We don't overlap with any keys in this level, but we still need to check
1065
- // if our file can fit in it
1066
- if (IngestedFileFitInLevel(file_to_ingest, lvl)) {
1067
- target_level = lvl;
1068
- }
1069
- }
1070
-
1071
- if (ingestion_options_.fail_if_not_bottommost_level &&
1072
- target_level < cfd_->NumberLevels() - 1) {
1073
- status = Status::TryAgain(
1074
- "Files cannot be ingested to Lmax. Please make sure key range of Lmax "
1075
- "and ongoing compaction's output to Lmax"
1076
- "does not overlap with files to ingest.");
1077
- return status;
1078
- }
1079
-
1080
- TEST_SYNC_POINT_CALLBACK(
1081
- "ExternalSstFileIngestionJob::AssignLevelAndSeqnoForIngestedFile",
1082
- &overlap_with_db);
1083
- file_to_ingest->picked_level = target_level;
1084
- if (overlap_with_db) {
1085
- if (ts_sz > 0) {
1086
- status = Status::InvalidArgument(
1087
- "Column family enables user-defined timestamps, please make sure the "
1088
- "key range (without timestamp) of external file does not overlap "
1089
- "with key range (without timestamp) in the db");
1090
- return status;
1091
- }
1092
- if (*assigned_seqno == 0) {
1093
- *assigned_seqno = last_seqno + 1;
1094
- }
1095
- }
1096
-
1097
- if (ingestion_options_.allow_db_generated_files && *assigned_seqno != 0) {
1098
- return Status::InvalidArgument(
1099
- "An ingested file is assigned to a non-zero sequence number, which is "
1100
- "incompatible with ingestion option allow_db_generated_files.");
1101
- }
1102
- return status;
1103
- }
1104
-
1105
- Status ExternalSstFileIngestionJob::CheckLevelForIngestedBehindFile(
1106
- IngestedFileInfo* file_to_ingest) {
1107
- auto* vstorage = cfd_->current()->storage_info();
1108
- // First, check if new files fit in the last level
1109
- int last_lvl = cfd_->NumberLevels() - 1;
1110
- if (!IngestedFileFitInLevel(file_to_ingest, last_lvl)) {
1111
- return Status::InvalidArgument(
1112
- "Can't ingest_behind file as it doesn't fit "
1113
- "at the last level!");
1114
- }
1115
-
1116
- // Second, check if despite allow_ingest_behind=true we still have 0 seqnums
1117
- // at some upper level
1118
- for (int lvl = 0; lvl < cfd_->NumberLevels() - 1; lvl++) {
1119
- for (auto file : vstorage->LevelFiles(lvl)) {
1120
- if (file->fd.smallest_seqno == 0) {
1121
- return Status::InvalidArgument(
1122
- "Can't ingest_behind file as despite allow_ingest_behind=true "
1123
- "there are files with 0 seqno in database at upper levels!");
1124
- }
1125
- }
1126
- }
1127
-
1128
- file_to_ingest->picked_level = last_lvl;
1129
- return Status::OK();
1130
- }
1131
-
1132
- Status ExternalSstFileIngestionJob::AssignGlobalSeqnoForIngestedFile(
1133
- IngestedFileInfo* file_to_ingest, SequenceNumber seqno) {
1134
- if (file_to_ingest->original_seqno == seqno) {
1135
- // This file already have the correct global seqno
1136
- return Status::OK();
1137
- } else if (!ingestion_options_.allow_global_seqno) {
1138
- return Status::InvalidArgument("Global seqno is required, but disabled");
1139
- } else if (ingestion_options_.write_global_seqno &&
1140
- file_to_ingest->global_seqno_offset == 0) {
1141
- return Status::InvalidArgument(
1142
- "Trying to set global seqno for a file that don't have a global seqno "
1143
- "field");
1144
- }
1145
-
1146
- if (ingestion_options_.write_global_seqno) {
1147
- // Determine if we can write global_seqno to a given offset of file.
1148
- // If the file system does not support random write, then we should not.
1149
- // Otherwise we should.
1150
- std::unique_ptr<FSRandomRWFile> rwfile;
1151
- Status status = fs_->NewRandomRWFile(file_to_ingest->internal_file_path,
1152
- env_options_, &rwfile, nullptr);
1153
- TEST_SYNC_POINT_CALLBACK("ExternalSstFileIngestionJob::NewRandomRWFile",
1154
- &status);
1155
- if (status.ok()) {
1156
- FSRandomRWFilePtr fsptr(std::move(rwfile), io_tracer_,
1157
- file_to_ingest->internal_file_path);
1158
- std::string seqno_val;
1159
- PutFixed64(&seqno_val, seqno);
1160
- status = fsptr->Write(file_to_ingest->global_seqno_offset, seqno_val,
1161
- IOOptions(), nullptr);
1162
- if (status.ok()) {
1163
- TEST_SYNC_POINT("ExternalSstFileIngestionJob::BeforeSyncGlobalSeqno");
1164
- status = SyncIngestedFile(fsptr.get());
1165
- TEST_SYNC_POINT("ExternalSstFileIngestionJob::AfterSyncGlobalSeqno");
1166
- if (!status.ok()) {
1167
- ROCKS_LOG_WARN(db_options_.info_log,
1168
- "Failed to sync ingested file %s after writing global "
1169
- "sequence number: %s",
1170
- file_to_ingest->internal_file_path.c_str(),
1171
- status.ToString().c_str());
1172
- }
1173
- }
1174
- if (!status.ok()) {
1175
- return status;
1176
- }
1177
- } else if (!status.IsNotSupported()) {
1178
- return status;
1179
- }
1180
- }
1181
-
1182
- file_to_ingest->assigned_seqno = seqno;
1183
- return Status::OK();
1184
- }
1185
-
1186
- IOStatus ExternalSstFileIngestionJob::GenerateChecksumForIngestedFile(
1187
- IngestedFileInfo* file_to_ingest) {
1188
- if (db_options_.file_checksum_gen_factory == nullptr ||
1189
- need_generate_file_checksum_ == false ||
1190
- ingestion_options_.write_global_seqno == false) {
1191
- // If file_checksum_gen_factory is not set, we are not able to generate
1192
- // the checksum. if write_global_seqno is false, it means we will use
1193
- // file checksum generated during Prepare(). This step will be skipped.
1194
- return IOStatus::OK();
1195
- }
1196
- std::string file_checksum;
1197
- std::string file_checksum_func_name;
1198
- std::string requested_checksum_func_name;
1199
- // TODO: rate limit file reads for checksum calculation during file ingestion.
1200
- // TODO: plumb Env::IOActivity
1201
- ReadOptions ro;
1202
- IOStatus io_s = GenerateOneFileChecksum(
1203
- fs_.get(), file_to_ingest->internal_file_path,
1204
- db_options_.file_checksum_gen_factory.get(), requested_checksum_func_name,
1205
- &file_checksum, &file_checksum_func_name,
1206
- ingestion_options_.verify_checksums_readahead_size,
1207
- db_options_.allow_mmap_reads, io_tracer_, db_options_.rate_limiter.get(),
1208
- ro, db_options_.stats, db_options_.clock);
1209
- if (!io_s.ok()) {
1210
- return io_s;
1211
- }
1212
- file_to_ingest->file_checksum = std::move(file_checksum);
1213
- file_to_ingest->file_checksum_func_name = std::move(file_checksum_func_name);
1214
- return IOStatus::OK();
1215
- }
1216
-
1217
- bool ExternalSstFileIngestionJob::IngestedFileFitInLevel(
1218
- const IngestedFileInfo* file_to_ingest, int level) {
1219
- if (level == 0) {
1220
- // Files can always fit in L0
1221
- return true;
1222
- }
1223
-
1224
- auto* vstorage = cfd_->current()->storage_info();
1225
- Slice file_smallest_user_key(file_to_ingest->start_ukey);
1226
- Slice file_largest_user_key(file_to_ingest->limit_ukey);
1227
-
1228
- if (vstorage->OverlapInLevel(level, &file_smallest_user_key,
1229
- &file_largest_user_key)) {
1230
- // File overlap with another files in this level, we cannot
1231
- // add it to this level
1232
- return false;
1233
- }
1234
-
1235
- // File did not overlap with level files, nor compaction output
1236
- return true;
1237
- }
1238
-
1239
- template <typename TWritableFile>
1240
- Status ExternalSstFileIngestionJob::SyncIngestedFile(TWritableFile* file) {
1241
- assert(file != nullptr);
1242
- if (db_options_.use_fsync) {
1243
- return file->Fsync(IOOptions(), nullptr);
1244
- } else {
1245
- return file->Sync(IOOptions(), nullptr);
1246
- }
1247
- }
1248
-
1249
- } // namespace ROCKSDB_NAMESPACE