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,1755 +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
- // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
7
- // Use of this source code is governed by a BSD-style license that can be
8
- // found in the LICENSE file. See the AUTHORS file for names of contributors.
9
-
10
- #include "table/merging_iterator.h"
11
-
12
- #include "db/arena_wrapped_db_iter.h"
13
-
14
- namespace ROCKSDB_NAMESPACE {
15
- // MergingIterator uses a min/max heap to combine data from point iterators.
16
- // Range tombstones can be added and keys covered by range tombstones will be
17
- // skipped.
18
- //
19
- // The following are implementation details and can be ignored by user.
20
- // For merging iterator to process range tombstones, it treats the start and end
21
- // keys of a range tombstone as two keys and put them into minHeap_ or maxHeap_
22
- // together with regular point keys. Each range tombstone is active only within
23
- // its internal key range [start_key, end_key). An `active_` set is used to
24
- // track levels that have an active range tombstone. Take forward scanning
25
- // for example. Level j is in active_ if its current range tombstone has its
26
- // start_key popped from minHeap_ and its end_key in minHeap_. If the top of
27
- // minHeap_ is a point key from level L, we can determine if the point key is
28
- // covered by any range tombstone by checking if there is an l <= L in active_.
29
- // The case of l == L also involves checking range tombstone's sequence number.
30
- //
31
- // The following (non-exhaustive) list of invariants are maintained by
32
- // MergingIterator during forward scanning. After each InternalIterator API,
33
- // i.e., Seek*() and Next(), and FindNextVisibleKey(), if minHeap_ is not empty:
34
- // (1) minHeap_.top().type == ITERATOR
35
- // (2) minHeap_.top()->key() is not covered by any range tombstone.
36
- //
37
- // After each call to SeekImpl() in addition to the functions mentioned above:
38
- // (3) For all level i and j <= i, range_tombstone_iters_[j].prev.end_key() <
39
- // children_[i].iter.key(). That is, range_tombstone_iters_[j] is at or before
40
- // the first range tombstone from level j with end_key() >
41
- // children_[i].iter.key().
42
- // (4) For all level i and j <= i, if j in active_, then
43
- // range_tombstone_iters_[j]->start_key() < children_[i].iter.key().
44
- // - When range_tombstone_iters_[j] is !Valid(), we consider its `prev` to be
45
- // the last range tombstone from that range tombstone iterator.
46
- // - When referring to range tombstone start/end keys, assume it is the value of
47
- // HeapItem::tombstone_pik. This value has op_type = kMaxValid, which makes
48
- // range tombstone keys have distinct values from point keys.
49
- //
50
- // Applicable class variables have their own (forward scanning) invariants
51
- // listed in the comments above their definition.
52
- class MergingIterator : public InternalIterator {
53
- public:
54
- MergingIterator(const InternalKeyComparator* comparator,
55
- InternalIterator** children, int n, bool is_arena_mode,
56
- bool prefix_seek_mode,
57
- const Slice* iterate_upper_bound = nullptr)
58
- : is_arena_mode_(is_arena_mode),
59
- prefix_seek_mode_(prefix_seek_mode),
60
- direction_(kForward),
61
- comparator_(comparator),
62
- current_(nullptr),
63
- minHeap_(MinHeapItemComparator(comparator_)),
64
- pinned_iters_mgr_(nullptr),
65
- iterate_upper_bound_(iterate_upper_bound) {
66
- children_.resize(n);
67
- for (int i = 0; i < n; i++) {
68
- children_[i].level = i;
69
- children_[i].iter.Set(children[i]);
70
- }
71
- }
72
-
73
- void considerStatus(Status s) {
74
- if (!s.ok() && status_.ok()) {
75
- status_ = s;
76
- }
77
- }
78
-
79
- virtual void AddIterator(InternalIterator* iter) {
80
- children_.emplace_back(children_.size(), iter);
81
- if (pinned_iters_mgr_) {
82
- iter->SetPinnedItersMgr(pinned_iters_mgr_);
83
- }
84
- // Invalidate to ensure `Seek*()` is called to construct the heaps before
85
- // use.
86
- current_ = nullptr;
87
- }
88
-
89
- // There must be either no range tombstone iterator or the same number of
90
- // range tombstone iterators as point iterators after all iters are added.
91
- // The i-th added range tombstone iterator and the i-th point iterator
92
- // must point to the same LSM level.
93
- // Merging iterator takes ownership of `iter` and is responsible for freeing
94
- // it. One exception to this is when a LevelIterator moves to a different SST
95
- // file or when Iterator::Refresh() is called, the range tombstone iterator
96
- // could be updated. In that case, this merging iterator is only responsible
97
- // for freeing the new range tombstone iterator that it has pointers to in
98
- // range_tombstone_iters_.
99
- void AddRangeTombstoneIterator(
100
- std::unique_ptr<TruncatedRangeDelIterator>&& iter) {
101
- range_tombstone_iters_.emplace_back(std::move(iter));
102
- }
103
-
104
- // Called by MergingIteratorBuilder when all point iterators and range
105
- // tombstone iterators are added. Initializes HeapItems for range tombstone
106
- // iterators.
107
- void Finish() {
108
- if (!range_tombstone_iters_.empty()) {
109
- assert(range_tombstone_iters_.size() == children_.size());
110
- pinned_heap_item_.resize(range_tombstone_iters_.size());
111
- for (size_t i = 0; i < range_tombstone_iters_.size(); ++i) {
112
- pinned_heap_item_[i].level = i;
113
- // Range tombstone end key is exclusive. If a point internal key has the
114
- // same user key and sequence number as the start or end key of a range
115
- // tombstone, the order will be start < end key < internal key with the
116
- // following op_type change. This is helpful to ensure keys popped from
117
- // heap are in expected order since range tombstone start/end keys will
118
- // be distinct from point internal keys. Strictly speaking, this is only
119
- // needed for tombstone end points that are truncated in
120
- // TruncatedRangeDelIterator since untruncated tombstone end points
121
- // always have kMaxSequenceNumber and kTypeRangeDeletion (see
122
- // TruncatedRangeDelIterator::start_key()/end_key()).
123
- pinned_heap_item_[i].tombstone_pik.type = kTypeMaxValid;
124
- }
125
- }
126
- }
127
-
128
- ~MergingIterator() override {
129
- range_tombstone_iters_.clear();
130
-
131
- for (auto& child : children_) {
132
- child.iter.DeleteIter(is_arena_mode_);
133
- }
134
- status_.PermitUncheckedError();
135
- }
136
-
137
- void SetRangeDelReadSeqno(SequenceNumber read_seqno) override {
138
- for (auto& child : children_) {
139
- // This should only be needed for LevelIterator (iterators from L1+).
140
- child.iter.SetRangeDelReadSeqno(read_seqno);
141
- }
142
- for (auto& child : range_tombstone_iters_) {
143
- if (child) {
144
- child->SetRangeDelReadSeqno(read_seqno);
145
- }
146
- }
147
- }
148
-
149
- bool Valid() const override { return current_ != nullptr && status_.ok(); }
150
-
151
- Status status() const override { return status_; }
152
-
153
- // Add range_tombstone_iters_[level] into min heap.
154
- // Updates active_ if the end key of a range tombstone is inserted.
155
- // pinned_heap_items_[level].type is updated based on `start_key`.
156
- //
157
- // If range_tombstone_iters_[level] is after iterate_upper_bound_,
158
- // it is removed from the heap.
159
- // @param start_key specifies which end point of the range tombstone to add.
160
- void InsertRangeTombstoneToMinHeap(size_t level, bool start_key = true,
161
- bool replace_top = false) {
162
- assert(!range_tombstone_iters_.empty() &&
163
- range_tombstone_iters_[level]->Valid());
164
- // Maintains Invariant(phi)
165
- if (start_key) {
166
- pinned_heap_item_[level].type = HeapItem::Type::DELETE_RANGE_START;
167
- ParsedInternalKey pik = range_tombstone_iters_[level]->start_key();
168
- // iterate_upper_bound does not have timestamp
169
- if (iterate_upper_bound_ &&
170
- comparator_->user_comparator()->CompareWithoutTimestamp(
171
- pik.user_key, true /* a_has_ts */, *iterate_upper_bound_,
172
- false /* b_has_ts */) >= 0) {
173
- if (replace_top) {
174
- // replace_top implies this range tombstone iterator is still in
175
- // minHeap_ and at the top.
176
- minHeap_.pop();
177
- }
178
- return;
179
- }
180
- pinned_heap_item_[level].SetTombstoneKey(std::move(pik));
181
- // Checks Invariant(active_)
182
- assert(active_.count(level) == 0);
183
- } else {
184
- // allow end key to go over upper bound (if present) since start key is
185
- // before upper bound and the range tombstone could still cover a
186
- // range before upper bound.
187
- // Maintains Invariant(active_)
188
- pinned_heap_item_[level].SetTombstoneKey(
189
- range_tombstone_iters_[level]->end_key());
190
- pinned_heap_item_[level].type = HeapItem::Type::DELETE_RANGE_END;
191
- active_.insert(level);
192
- }
193
- if (replace_top) {
194
- minHeap_.replace_top(&pinned_heap_item_[level]);
195
- } else {
196
- minHeap_.push(&pinned_heap_item_[level]);
197
- }
198
- }
199
-
200
- // Add range_tombstone_iters_[level] into max heap.
201
- // Updates active_ if the start key of a range tombstone is inserted.
202
- // @param end_key specifies which end point of the range tombstone to add.
203
- void InsertRangeTombstoneToMaxHeap(size_t level, bool end_key = true,
204
- bool replace_top = false) {
205
- assert(!range_tombstone_iters_.empty() &&
206
- range_tombstone_iters_[level]->Valid());
207
- if (end_key) {
208
- pinned_heap_item_[level].SetTombstoneKey(
209
- range_tombstone_iters_[level]->end_key());
210
- pinned_heap_item_[level].type = HeapItem::Type::DELETE_RANGE_END;
211
- assert(active_.count(level) == 0);
212
- } else {
213
- pinned_heap_item_[level].SetTombstoneKey(
214
- range_tombstone_iters_[level]->start_key());
215
- pinned_heap_item_[level].type = HeapItem::Type::DELETE_RANGE_START;
216
- active_.insert(level);
217
- }
218
- if (replace_top) {
219
- maxHeap_->replace_top(&pinned_heap_item_[level]);
220
- } else {
221
- maxHeap_->push(&pinned_heap_item_[level]);
222
- }
223
- }
224
-
225
- // Remove HeapItems from top of minHeap_ that are of type DELETE_RANGE_START
226
- // until minHeap_ is empty or the top of the minHeap_ is not of type
227
- // DELETE_RANGE_START. Each such item means a range tombstone becomes active,
228
- // so `active_` is updated accordingly.
229
- void PopDeleteRangeStart() {
230
- while (!minHeap_.empty() &&
231
- minHeap_.top()->type == HeapItem::Type::DELETE_RANGE_START) {
232
- TEST_SYNC_POINT_CALLBACK("MergeIterator::PopDeleteRangeStart", nullptr);
233
- // Invariant(rti) holds since
234
- // range_tombstone_iters_[minHeap_.top()->level] is still valid, and
235
- // parameter `replace_top` is set to true here to ensure only one such
236
- // HeapItem is in minHeap_.
237
- InsertRangeTombstoneToMinHeap(
238
- minHeap_.top()->level, false /* start_key */, true /* replace_top */);
239
- }
240
- }
241
-
242
- // Remove HeapItems from top of maxHeap_ that are of type DELETE_RANGE_END
243
- // until maxHeap_ is empty or the top of the maxHeap_ is not of type
244
- // DELETE_RANGE_END. Each such item means a range tombstone becomes active,
245
- // so `active_` is updated accordingly.
246
- void PopDeleteRangeEnd() {
247
- while (!maxHeap_->empty() &&
248
- maxHeap_->top()->type == HeapItem::Type::DELETE_RANGE_END) {
249
- // insert start key of this range tombstone and updates active_
250
- InsertRangeTombstoneToMaxHeap(maxHeap_->top()->level, false /* end_key */,
251
- true /* replace_top */);
252
- }
253
- }
254
-
255
- void SeekToFirst() override {
256
- ClearHeaps();
257
- status_ = Status::OK();
258
- for (auto& child : children_) {
259
- child.iter.SeekToFirst();
260
- AddToMinHeapOrCheckStatus(&child);
261
- }
262
-
263
- for (size_t i = 0; i < range_tombstone_iters_.size(); ++i) {
264
- if (range_tombstone_iters_[i]) {
265
- range_tombstone_iters_[i]->SeekToFirst();
266
- if (range_tombstone_iters_[i]->Valid()) {
267
- // It is possible to be invalid due to snapshots.
268
- InsertRangeTombstoneToMinHeap(i);
269
- }
270
- }
271
- }
272
- FindNextVisibleKey();
273
- direction_ = kForward;
274
- current_ = CurrentForward();
275
- }
276
-
277
- void SeekToLast() override {
278
- ClearHeaps();
279
- InitMaxHeap();
280
- status_ = Status::OK();
281
- for (auto& child : children_) {
282
- child.iter.SeekToLast();
283
- AddToMaxHeapOrCheckStatus(&child);
284
- }
285
-
286
- for (size_t i = 0; i < range_tombstone_iters_.size(); ++i) {
287
- if (range_tombstone_iters_[i]) {
288
- range_tombstone_iters_[i]->SeekToLast();
289
- if (range_tombstone_iters_[i]->Valid()) {
290
- // It is possible to be invalid due to snapshots.
291
- InsertRangeTombstoneToMaxHeap(i);
292
- }
293
- }
294
- }
295
- FindPrevVisibleKey();
296
- direction_ = kReverse;
297
- current_ = CurrentReverse();
298
- }
299
-
300
- // Position this merging iterator at the first key >= target (internal key).
301
- // If range tombstones are present, keys covered by range tombstones are
302
- // skipped, and this merging iter points to the first non-range-deleted key >=
303
- // target after Seek(). If !Valid() and status().ok() then this iterator
304
- // reaches the end.
305
- //
306
- // If range tombstones are present, cascading seeks may be called (an
307
- // optimization adapted from Pebble https://github.com/cockroachdb/pebble).
308
- // Roughly, if there is a range tombstone [start, end) that covers the
309
- // target user key at level L, then this range tombstone must cover the range
310
- // [target key, end) in all levels > L. So for all levels > L, we can pretend
311
- // the target key is `end`. This optimization is applied at each level and
312
- // hence the name "cascading seek".
313
- void Seek(const Slice& target) override {
314
- // Define LevelNextVisible(i, k) to be the first key >= k in level i that is
315
- // not covered by any range tombstone.
316
- // After SeekImpl(target, 0), invariants (3) and (4) hold.
317
- // For all level i, target <= children_[i].iter.key() <= LevelNextVisible(i,
318
- // target). By the contract of FindNextVisibleKey(), Invariants (1)-(4)
319
- // holds after this call, and minHeap_.top().iter points to the
320
- // first key >= target among children_ that is not covered by any range
321
- // tombstone.
322
- status_ = Status::OK();
323
- SeekImpl(target);
324
- FindNextVisibleKey();
325
-
326
- direction_ = kForward;
327
- {
328
- PERF_TIMER_GUARD(seek_min_heap_time);
329
- current_ = CurrentForward();
330
- }
331
- }
332
-
333
- void SeekForPrev(const Slice& target) override {
334
- assert(range_tombstone_iters_.empty() ||
335
- range_tombstone_iters_.size() == children_.size());
336
- status_ = Status::OK();
337
- SeekForPrevImpl(target);
338
- FindPrevVisibleKey();
339
-
340
- direction_ = kReverse;
341
- {
342
- PERF_TIMER_GUARD(seek_max_heap_time);
343
- current_ = CurrentReverse();
344
- }
345
- }
346
-
347
- void Next() override {
348
- assert(Valid());
349
- // Ensure that all children are positioned after key().
350
- // If we are moving in the forward direction, it is already
351
- // true for all the non-current children since current_ is
352
- // the smallest child and key() == current_->key().
353
- if (direction_ != kForward) {
354
- // The loop advanced all non-current children to be > key() so current_
355
- // should still be strictly the smallest key.
356
- SwitchToForward();
357
- }
358
-
359
- // For the heap modifications below to be correct, current_ must be the
360
- // current top of the heap.
361
- assert(current_ == CurrentForward());
362
- // as the current points to the current record. move the iterator forward.
363
- current_->Next();
364
- if (current_->Valid()) {
365
- // current is still valid after the Next() call above. Call
366
- // replace_top() to restore the heap property. When the same child
367
- // iterator yields a sequence of keys, this is cheap.
368
- assert(current_->status().ok());
369
- minHeap_.replace_top(minHeap_.top());
370
- } else {
371
- // current stopped being valid, remove it from the heap.
372
- considerStatus(current_->status());
373
- minHeap_.pop();
374
- }
375
- // Invariants (3) and (4) hold when after advancing current_.
376
- // Let k be the smallest key among children_[i].iter.key().
377
- // k <= children_[i].iter.key() <= LevelNextVisible(i, k) holds for all
378
- // level i. After FindNextVisible(), Invariants (1)-(4) hold and
379
- // minHeap_.top()->key() is the first key >= k from any children_ that is
380
- // not covered by any range tombstone.
381
- FindNextVisibleKey();
382
- current_ = CurrentForward();
383
- }
384
-
385
- bool NextAndGetResult(IterateResult* result) override {
386
- Next();
387
- bool is_valid = Valid();
388
- if (is_valid) {
389
- result->key = key();
390
- result->bound_check_result = UpperBoundCheckResult();
391
- result->value_prepared = current_->IsValuePrepared();
392
- }
393
- return is_valid;
394
- }
395
-
396
- void Prev() override {
397
- assert(Valid());
398
- // Ensure that all children are positioned before key().
399
- // If we are moving in the reverse direction, it is already
400
- // true for all the non-current children since current_ is
401
- // the largest child and key() == current_->key().
402
- if (direction_ != kReverse) {
403
- // Otherwise, retreat the non-current children. We retreat current_
404
- // just after the if-block.
405
- SwitchToBackward();
406
- }
407
-
408
- // For the heap modifications below to be correct, current_ must be the
409
- // current top of the heap.
410
- assert(current_ == CurrentReverse());
411
- current_->Prev();
412
- if (current_->Valid()) {
413
- // current is still valid after the Prev() call above. Call
414
- // replace_top() to restore the heap property. When the same child
415
- // iterator yields a sequence of keys, this is cheap.
416
- assert(current_->status().ok());
417
- maxHeap_->replace_top(maxHeap_->top());
418
- } else {
419
- // current stopped being valid, remove it from the heap.
420
- considerStatus(current_->status());
421
- maxHeap_->pop();
422
- }
423
- FindPrevVisibleKey();
424
- current_ = CurrentReverse();
425
- }
426
-
427
- Slice key() const override {
428
- assert(Valid());
429
- return current_->key();
430
- }
431
-
432
- uint64_t write_unix_time() const override {
433
- assert(Valid());
434
- return current_->write_unix_time();
435
- }
436
-
437
- Slice value() const override {
438
- assert(Valid());
439
- return current_->value();
440
- }
441
-
442
- bool PrepareValue() override {
443
- assert(Valid());
444
- if (current_->PrepareValue()) {
445
- return true;
446
- }
447
-
448
- considerStatus(current_->status());
449
- assert(!status_.ok());
450
- return false;
451
- }
452
-
453
- // Here we simply relay MayBeOutOfLowerBound/MayBeOutOfUpperBound result
454
- // from current child iterator. Potentially as long as one of child iterator
455
- // report out of bound is not possible, we know current key is within bound.
456
- bool MayBeOutOfLowerBound() override {
457
- assert(Valid());
458
- return current_->MayBeOutOfLowerBound();
459
- }
460
-
461
- IterBoundCheck UpperBoundCheckResult() override {
462
- assert(Valid());
463
- return current_->UpperBoundCheckResult();
464
- }
465
-
466
- void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override {
467
- pinned_iters_mgr_ = pinned_iters_mgr;
468
- for (auto& child : children_) {
469
- child.iter.SetPinnedItersMgr(pinned_iters_mgr);
470
- }
471
- }
472
-
473
- bool IsKeyPinned() const override {
474
- assert(Valid());
475
- return pinned_iters_mgr_ && pinned_iters_mgr_->PinningEnabled() &&
476
- current_->IsKeyPinned();
477
- }
478
-
479
- bool IsValuePinned() const override {
480
- assert(Valid());
481
- return pinned_iters_mgr_ && pinned_iters_mgr_->PinningEnabled() &&
482
- current_->IsValuePinned();
483
- }
484
-
485
- private:
486
- // Represents an element in the min/max heap. Each HeapItem corresponds to a
487
- // point iterator or a range tombstone iterator, differentiated by
488
- // HeapItem::type.
489
- struct HeapItem {
490
- HeapItem() = default;
491
-
492
- // corresponding point iterator
493
- IteratorWrapper iter;
494
- size_t level = 0;
495
- // corresponding range tombstone iterator's start or end key value
496
- // depending on value of `type`.
497
- ParsedInternalKey tombstone_pik;
498
- // Will be overwritten before use, initialize here so compiler does not
499
- // complain.
500
- enum class Type { ITERATOR, DELETE_RANGE_START, DELETE_RANGE_END };
501
- Type type = Type::ITERATOR;
502
-
503
- explicit HeapItem(size_t _level, InternalIteratorBase<Slice>* _iter)
504
- : level(_level), type(Type::ITERATOR) {
505
- iter.Set(_iter);
506
- }
507
-
508
- void SetTombstoneKey(ParsedInternalKey&& pik) {
509
- // op_type is already initialized in MergingIterator::Finish().
510
- tombstone_pik.user_key = pik.user_key;
511
- tombstone_pik.sequence = pik.sequence;
512
- }
513
- };
514
-
515
- class MinHeapItemComparator {
516
- public:
517
- explicit MinHeapItemComparator(const InternalKeyComparator* comparator)
518
- : comparator_(comparator) {}
519
-
520
- bool operator()(HeapItem* a, HeapItem* b) const {
521
- if (LIKELY(a->type == HeapItem::Type::ITERATOR)) {
522
- if (LIKELY(b->type == HeapItem::Type::ITERATOR)) {
523
- return comparator_->Compare(a->iter.key(), b->iter.key()) > 0;
524
- } else {
525
- return comparator_->Compare(a->iter.key(), b->tombstone_pik) > 0;
526
- }
527
- } else {
528
- if (LIKELY(b->type == HeapItem::Type::ITERATOR)) {
529
- return comparator_->Compare(a->tombstone_pik, b->iter.key()) > 0;
530
- } else {
531
- return comparator_->Compare(a->tombstone_pik, b->tombstone_pik) > 0;
532
- }
533
- }
534
- }
535
-
536
- private:
537
- const InternalKeyComparator* comparator_;
538
- };
539
-
540
- class MaxHeapItemComparator {
541
- public:
542
- explicit MaxHeapItemComparator(const InternalKeyComparator* comparator)
543
- : comparator_(comparator) {}
544
-
545
- bool operator()(HeapItem* a, HeapItem* b) const {
546
- if (LIKELY(a->type == HeapItem::Type::ITERATOR)) {
547
- if (LIKELY(b->type == HeapItem::Type::ITERATOR)) {
548
- return comparator_->Compare(a->iter.key(), b->iter.key()) < 0;
549
- } else {
550
- return comparator_->Compare(a->iter.key(), b->tombstone_pik) < 0;
551
- }
552
- } else {
553
- if (LIKELY(b->type == HeapItem::Type::ITERATOR)) {
554
- return comparator_->Compare(a->tombstone_pik, b->iter.key()) < 0;
555
- } else {
556
- return comparator_->Compare(a->tombstone_pik, b->tombstone_pik) < 0;
557
- }
558
- }
559
- }
560
-
561
- private:
562
- const InternalKeyComparator* comparator_;
563
- };
564
-
565
- using MergerMinIterHeap = BinaryHeap<HeapItem*, MinHeapItemComparator>;
566
- using MergerMaxIterHeap = BinaryHeap<HeapItem*, MaxHeapItemComparator>;
567
-
568
- friend class MergeIteratorBuilder;
569
- // Clears heaps for both directions, used when changing direction or seeking
570
- void ClearHeaps(bool clear_active = true);
571
- // Ensures that maxHeap_ is initialized when starting to go in the reverse
572
- // direction
573
- void InitMaxHeap();
574
- // Advance this merging iterator until the current key (minHeap_.top()) is
575
- // from a point iterator and is not covered by any range tombstone,
576
- // or that there is no more keys (heap is empty). SeekImpl() may be called
577
- // to seek to the end of a range tombstone as an optimization.
578
- void FindNextVisibleKey();
579
- void FindPrevVisibleKey();
580
-
581
- // Advance this merging iterators to the first key >= `target` for all
582
- // components from levels >= starting_level. All iterators before
583
- // starting_level are untouched.
584
- //
585
- // @param range_tombstone_reseek Whether target is some range tombstone
586
- // end, i.e., whether this SeekImpl() call is a part of a "cascading seek".
587
- // This is used only for recoding relevant perf_context.
588
- void SeekImpl(const Slice& target, size_t starting_level = 0,
589
- bool range_tombstone_reseek = false);
590
-
591
- // Seek to fist key <= target key (internal key) for
592
- // children_[starting_level:].
593
- void SeekForPrevImpl(const Slice& target, size_t starting_level = 0,
594
- bool range_tombstone_reseek = false);
595
-
596
- bool is_arena_mode_;
597
- bool prefix_seek_mode_;
598
- // Which direction is the iterator moving?
599
- enum Direction : uint8_t { kForward, kReverse };
600
- Direction direction_;
601
- const InternalKeyComparator* comparator_;
602
- // HeapItem for all child point iterators.
603
- // Invariant(children_): children_[i] is in minHeap_ iff
604
- // children_[i].iter.Valid(), and at most one children_[i] is in minHeap_.
605
- // TODO: We could use an autovector with a larger reserved size.
606
- std::vector<HeapItem> children_;
607
- // HeapItem for range tombstone start and end keys.
608
- // pinned_heap_item_[i] corresponds to range_tombstone_iters_[i].
609
- // Invariant(phi): If range_tombstone_iters_[i]->Valid(),
610
- // pinned_heap_item_[i].tombstone_pik is equal to
611
- // range_tombstone_iters_[i]->start_key() when
612
- // pinned_heap_item_[i].type is DELETE_RANGE_START and
613
- // range_tombstone_iters_[i]->end_key() when
614
- // pinned_heap_item_[i].type is DELETE_RANGE_END (ignoring op_type which is
615
- // kMaxValid for all pinned_heap_item_.tombstone_pik).
616
- // pinned_heap_item_[i].type is either DELETE_RANGE_START or DELETE_RANGE_END.
617
- std::vector<HeapItem> pinned_heap_item_;
618
- // range_tombstone_iters_[i] contains range tombstones in the sorted run that
619
- // corresponds to children_[i]. range_tombstone_iters_.empty() means not
620
- // handling range tombstones in merging iterator. range_tombstone_iters_[i] ==
621
- // nullptr means the sorted run of children_[i] does not have range
622
- // tombstones.
623
- // Invariant(rti): pinned_heap_item_[i] is in minHeap_ iff
624
- // range_tombstone_iters_[i]->Valid() and at most one pinned_heap_item_[i] is
625
- // in minHeap_.
626
- std::vector<std::unique_ptr<TruncatedRangeDelIterator>>
627
- range_tombstone_iters_;
628
-
629
- // Levels (indices into range_tombstone_iters_/children_ ) that currently have
630
- // "active" range tombstones. See comments above MergingIterator for meaning
631
- // of "active".
632
- // Invariant(active_): i is in active_ iff range_tombstone_iters_[i]->Valid()
633
- // and pinned_heap_item_[i].type == DELETE_RANGE_END.
634
- std::set<size_t> active_;
635
-
636
- bool SkipNextDeleted();
637
-
638
- bool SkipPrevDeleted();
639
-
640
- // Invariant: at the end of each InternalIterator API,
641
- // current_ points to minHeap_.top().iter (maxHeap_ if backward scanning)
642
- // or nullptr if no child iterator is valid.
643
- // This follows from that current_ = CurrentForward()/CurrentReverse() is
644
- // called at the end of each InternalIterator API.
645
- IteratorWrapper* current_;
646
- // If any of the children have non-ok status, this is one of them.
647
- Status status_;
648
- // Invariant: min heap property is maintained (parent is always <= child).
649
- // This holds by using only BinaryHeap APIs to modify heap. One
650
- // exception is to modify heap top item directly (by caller iter->Next()), and
651
- // it should be followed by a call to replace_top() or pop().
652
- MergerMinIterHeap minHeap_;
653
-
654
- // Max heap is used for reverse iteration, which is way less common than
655
- // forward. Lazily initialize it to save memory.
656
- std::unique_ptr<MergerMaxIterHeap> maxHeap_;
657
- PinnedIteratorsManager* pinned_iters_mgr_;
658
-
659
- // Used to bound range tombstones. For point keys, DBIter and SSTable iterator
660
- // take care of boundary checking.
661
- const Slice* iterate_upper_bound_;
662
-
663
- // In forward direction, process a child that is not in the min heap.
664
- // If valid, add to the min heap. Otherwise, check status.
665
- void AddToMinHeapOrCheckStatus(HeapItem*);
666
-
667
- // In backward direction, process a child that is not in the max heap.
668
- // If valid, add to the min heap. Otherwise, check status.
669
- void AddToMaxHeapOrCheckStatus(HeapItem*);
670
-
671
- void SwitchToForward();
672
-
673
- // Switch the direction from forward to backward without changing the
674
- // position. Iterator should still be valid.
675
- void SwitchToBackward();
676
-
677
- IteratorWrapper* CurrentForward() const {
678
- assert(direction_ == kForward);
679
- assert(minHeap_.empty() ||
680
- minHeap_.top()->type == HeapItem::Type::ITERATOR);
681
- return !minHeap_.empty() ? &minHeap_.top()->iter : nullptr;
682
- }
683
-
684
- IteratorWrapper* CurrentReverse() const {
685
- assert(direction_ == kReverse);
686
- assert(maxHeap_);
687
- assert(maxHeap_->empty() ||
688
- maxHeap_->top()->type == HeapItem::Type::ITERATOR);
689
- return !maxHeap_->empty() ? &maxHeap_->top()->iter : nullptr;
690
- }
691
- };
692
-
693
- // Pre-condition:
694
- // - Invariants (3) and (4) hold for i < starting_level
695
- // - For i < starting_level, range_tombstone_iters_[i].prev.end_key() <
696
- // `target`.
697
- // - For i < starting_level, if i in active_, then
698
- // range_tombstone_iters_[i]->start_key() < `target`.
699
- //
700
- // Post-condition:
701
- // - Invariants (3) and (4) hold for all level i.
702
- // - (*) target <= children_[i].iter.key() <= LevelNextVisible(i, target)
703
- // for i >= starting_level
704
- // - (**) target < pinned_heap_item_[i].tombstone_pik if
705
- // range_tombstone_iters_[i].Valid() for i >= starting_level
706
- //
707
- // Proof sketch:
708
- // Invariant (3) holds for all level i.
709
- // For j <= i < starting_level, it follows from Pre-condition that (3) holds
710
- // and that SeekImpl(-, starting_level) does not update children_[i] or
711
- // range_tombstone_iters_[j].
712
- // For j < starting_level and i >= starting_level, it follows from
713
- // - Pre-condition that range_tombstone_iters_[j].prev.end_key() < `target`
714
- // - range_tombstone_iters_[j] is not updated in SeekImpl(), and
715
- // - children_[i].iter.Seek(current_search_key) is called with
716
- // current_search_key >= target (shown below).
717
- // When current_search_key is updated, it is updated to some
718
- // range_tombstone_iter->end_key() after
719
- // range_tombstone_iter->SeekInternalKey(current_search_key) was called. So
720
- // current_search_key increases if updated and >= target.
721
- // For starting_level <= j <= i:
722
- // children_[i].iter.Seek(k1) and range_tombstone_iters_[j]->SeekInternalKey(k2)
723
- // are called in SeekImpl(). Seek(k1) positions children_[i] at the first key >=
724
- // k1 from level i. SeekInternalKey(k2) positions range_tombstone_iters_[j] at
725
- // the first range tombstone from level j with end_key() > k2. It suffices to
726
- // show that k1 >= k2. Since k1 and k2 are values of current_search_key where
727
- // k1 = k2 or k1 is value of a later current_search_key than k2, so k1 >= k2.
728
- //
729
- // Invariant (4) holds for all level >= 0.
730
- // By Pre-condition Invariant (4) holds for i < starting_level.
731
- // Since children_[i], range_tombstone_iters_[i] and contents of active_ for
732
- // i < starting_level do not change (4) holds for j <= i < starting_level.
733
- // By Pre-condition: for all j < starting_level, if j in active_, then
734
- // range_tombstone_iters_[j]->start_key() < target. For i >= starting_level,
735
- // children_[i].iter.Seek(k) is called for k >= target. So
736
- // children_[i].iter.key() >= target > range_tombstone_iters_[j]->start_key()
737
- // for j < starting_level and i >= starting_level. So invariant (4) holds for
738
- // j < starting_level and i >= starting_level.
739
- // For starting_level <= j <= i, j is added to active_ only if
740
- // - range_tombstone_iters_[j]->SeekInternalKey(k1) was called
741
- // - range_tombstone_iters_[j]->start_key() <= k1
742
- // Since children_[i].iter.Seek(k2) is called for some k2 >= k1 and for all
743
- // starting_level <= j <= i, (4) also holds for all starting_level <= j <= i.
744
- //
745
- // Post-condition (*): target <= children_[i].iter.key() <= LevelNextVisible(i,
746
- // target) for i >= starting_level.
747
- // target <= children_[i].iter.key() follows from that Seek() is called on some
748
- // current_search_key >= target for children_[i].iter. If current_search_key
749
- // is updated from k1 to k2 when level = i, we show that the range [k1, k2) is
750
- // not visible for children_[j] for any j > i. When current_search_key is
751
- // updated from k1 to k2,
752
- // - range_tombstone_iters_[i]->SeekInternalKey(k1) was called
753
- // - range_tombstone_iters_[i]->Valid()
754
- // - range_tombstone_iters_[i]->start_key().user_key <= k1.user_key
755
- // - k2 = range_tombstone_iters_[i]->end_key()
756
- // We assume that range_tombstone_iters_[i]->start_key() has a higher sequence
757
- // number compared to any key from levels > i that has the same user key. So no
758
- // point key from levels > i in range [k1, k2) is visible. So
759
- // children_[i].iter.key() <= LevelNextVisible(i, target).
760
- //
761
- // Post-condition (**) target < pinned_heap_item_[i].tombstone_pik for i >=
762
- // starting_level if range_tombstone_iters_[i].Valid(). This follows from that
763
- // SeekInternalKey() being called for each range_tombstone_iters_ with some key
764
- // >= `target` and that we pick start/end key that is > `target` to insert to
765
- // minHeap_.
766
- void MergingIterator::SeekImpl(const Slice& target, size_t starting_level,
767
- bool range_tombstone_reseek) {
768
- // active range tombstones before `starting_level` remain active
769
- ClearHeaps(false /* clear_active */);
770
- ParsedInternalKey pik;
771
- if (!range_tombstone_iters_.empty()) {
772
- // pik is only used in InsertRangeTombstoneToMinHeap().
773
- ParseInternalKey(target, &pik, false).PermitUncheckedError();
774
- }
775
-
776
- // TODO: perhaps we could save some upheap cost by add all child iters first
777
- // and then do a single heapify.
778
- // Invariant(children_) for level < starting_level
779
- for (size_t level = 0; level < starting_level; ++level) {
780
- PERF_TIMER_GUARD(seek_min_heap_time);
781
- AddToMinHeapOrCheckStatus(&children_[level]);
782
- }
783
- if (!range_tombstone_iters_.empty()) {
784
- // Add range tombstones from levels < starting_level. We can insert from
785
- // pinned_heap_item_ for the following reasons:
786
- // - pinned_heap_item_[level] is in minHeap_ iff
787
- // range_tombstone_iters[level]->Valid().
788
- // - If `level` is in active_, then range_tombstone_iters_[level]->Valid()
789
- // and pinned_heap_item_[level] is of type RANGE_DELETION_END.
790
- for (size_t level = 0; level < starting_level; ++level) {
791
- // Restores Invariants(rti), (phi) and (active_) for level <
792
- // starting_level
793
- if (range_tombstone_iters_[level] &&
794
- range_tombstone_iters_[level]->Valid()) {
795
- // use an iterator on active_ if performance becomes an issue here
796
- if (active_.count(level) > 0) {
797
- assert(pinned_heap_item_[level].type ==
798
- HeapItem::Type::DELETE_RANGE_END);
799
- // if it was active, then start key must be within upper_bound,
800
- // so we can add to minHeap_ directly.
801
- minHeap_.push(&pinned_heap_item_[level]);
802
- } else {
803
- assert(pinned_heap_item_[level].type ==
804
- HeapItem::Type::DELETE_RANGE_START);
805
- // this takes care of checking iterate_upper_bound, but with an extra
806
- // key comparison if range_tombstone_iters_[level] was already out of
807
- // bound. Consider using a new HeapItem type or some flag to remember
808
- // boundary checking result.
809
- InsertRangeTombstoneToMinHeap(level);
810
- }
811
- } else {
812
- assert(!active_.count(level));
813
- }
814
- }
815
- // levels >= starting_level will be reseeked below, so clearing their active
816
- // state here.
817
- active_.erase(active_.lower_bound(starting_level), active_.end());
818
- }
819
-
820
- IterKey current_search_key;
821
- current_search_key.SetInternalKey(target, false /* copy */);
822
- // Seek target might change to some range tombstone end key, so
823
- // we need to remember them for async requests.
824
- // (level, target) pairs
825
- autovector<std::pair<size_t, std::string>> prefetched_target;
826
- for (auto level = starting_level; level < children_.size(); ++level) {
827
- {
828
- PERF_TIMER_GUARD(seek_child_seek_time);
829
- children_[level].iter.Seek(current_search_key.GetInternalKey());
830
- }
831
-
832
- PERF_COUNTER_ADD(seek_child_seek_count, 1);
833
-
834
- if (!range_tombstone_iters_.empty()) {
835
- if (range_tombstone_reseek) {
836
- // This seek is to some range tombstone end key.
837
- // Should only happen when there are range tombstones.
838
- PERF_COUNTER_ADD(internal_range_del_reseek_count, 1);
839
- }
840
- if (children_[level].iter.status().IsTryAgain()) {
841
- prefetched_target.emplace_back(
842
- level, current_search_key.GetInternalKey().ToString());
843
- }
844
- UnownedPtr<TruncatedRangeDelIterator> range_tombstone_iter =
845
- range_tombstone_iters_[level].get();
846
- if (range_tombstone_iter) {
847
- range_tombstone_iter->SeekInternalKey(
848
- current_search_key.GetInternalKey());
849
- // Invariants (rti) and (phi)
850
- if (range_tombstone_iter->Valid()) {
851
- // If range tombstone starts after `current_search_key`,
852
- // we should insert start key to heap as the range tombstone is not
853
- // active yet.
854
- InsertRangeTombstoneToMinHeap(
855
- level, comparator_->Compare(range_tombstone_iter->start_key(),
856
- pik) > 0 /* start_key */);
857
- // current_search_key < end_key guaranteed by the SeekInternalKey()
858
- // and Valid() calls above. Here we only need to compare user_key
859
- // since if target.user_key ==
860
- // range_tombstone_iter->start_key().user_key and target <
861
- // range_tombstone_iter->start_key(), no older level would have any
862
- // key in range [target, range_tombstone_iter->start_key()], so no
863
- // keys in range [target, range_tombstone_iter->end_key()) from older
864
- // level would be visible. So it is safe to seek to
865
- // range_tombstone_iter->end_key().
866
- //
867
- // TODO: range_tombstone_iter->Seek() finds the max covering
868
- // sequence number, can make it cheaper by not looking for max.
869
- if (comparator_->user_comparator()->Compare(
870
- range_tombstone_iter->start_key().user_key,
871
- current_search_key.GetUserKey()) <= 0) {
872
- range_tombstone_reseek = true;
873
- // Note that for prefix seek case, it is possible that the prefix
874
- // is not the same as the original target, it should not affect
875
- // correctness. Besides, in most cases, range tombstone start and
876
- // end key should have the same prefix?
877
- current_search_key.SetInternalKey(range_tombstone_iter->end_key());
878
- }
879
- }
880
- }
881
- }
882
- // child.iter.status() is set to Status::TryAgain indicating asynchronous
883
- // request for retrieval of data blocks has been submitted. So it should
884
- // return at this point and Seek should be called again to retrieve the
885
- // requested block and add the child to min heap.
886
- if (children_[level].iter.status().IsTryAgain()) {
887
- continue;
888
- }
889
- {
890
- // Strictly, we timed slightly more than min heap operation,
891
- // but these operations are very cheap.
892
- PERF_TIMER_GUARD(seek_min_heap_time);
893
- AddToMinHeapOrCheckStatus(&children_[level]);
894
- }
895
- }
896
-
897
- if (range_tombstone_iters_.empty()) {
898
- for (auto& child : children_) {
899
- if (child.iter.status().IsTryAgain()) {
900
- child.iter.Seek(target);
901
- {
902
- PERF_TIMER_GUARD(seek_min_heap_time);
903
- AddToMinHeapOrCheckStatus(&child);
904
- }
905
- PERF_COUNTER_ADD(number_async_seek, 1);
906
- }
907
- }
908
- } else {
909
- for (auto& prefetch : prefetched_target) {
910
- // (level, target) pairs
911
- children_[prefetch.first].iter.Seek(prefetch.second);
912
- {
913
- PERF_TIMER_GUARD(seek_min_heap_time);
914
- AddToMinHeapOrCheckStatus(&children_[prefetch.first]);
915
- }
916
- PERF_COUNTER_ADD(number_async_seek, 1);
917
- }
918
- }
919
- }
920
-
921
- // Returns true iff the current key (min heap top) should not be returned
922
- // to user (of the merging iterator). This can be because the current key
923
- // is deleted by some range tombstone, the current key is some fake file
924
- // boundary sentinel key, or the current key is an end point of a range
925
- // tombstone. Advance the iterator at heap top if needed. Heap order is restored
926
- // and `active_` is updated accordingly.
927
- // See FindNextVisibleKey() for more detail on internal implementation
928
- // of advancing child iters.
929
- // When false is returned, if minHeap is not empty, then minHeap_.top().type
930
- // == ITERATOR
931
- //
932
- // REQUIRES:
933
- // - min heap is currently not empty, and iter is in kForward direction.
934
- // - minHeap_ top is not DELETE_RANGE_START (so that `active_` is current).
935
- bool MergingIterator::SkipNextDeleted() {
936
- // 3 types of keys:
937
- // - point key
938
- // - file boundary sentinel keys
939
- // - range deletion end key
940
- auto current = minHeap_.top();
941
- if (current->type == HeapItem::Type::DELETE_RANGE_END) {
942
- // Invariant(active_): range_tombstone_iters_[current->level] is about to
943
- // become !Valid() or that its start key is going to be added to minHeap_.
944
- active_.erase(current->level);
945
- assert(range_tombstone_iters_[current->level] &&
946
- range_tombstone_iters_[current->level]->Valid());
947
- range_tombstone_iters_[current->level]->Next();
948
- // Maintain Invariants (rti) and (phi)
949
- if (range_tombstone_iters_[current->level]->Valid()) {
950
- InsertRangeTombstoneToMinHeap(current->level, true /* start_key */,
951
- true /* replace_top */);
952
- } else {
953
- // TruncatedRangeDelIterator does not have status
954
- minHeap_.pop();
955
- }
956
- return true /* current key deleted */;
957
- }
958
- if (current->iter.IsDeleteRangeSentinelKey()) {
959
- // If the file boundary is defined by a range deletion, the range
960
- // tombstone's end key must come before this sentinel key (see op_type in
961
- // SetTombstoneKey()).
962
- assert(ExtractValueType(current->iter.key()) != kTypeRangeDeletion ||
963
- active_.count(current->level) == 0);
964
- // When entering a new file, range tombstone iter from the old file is
965
- // freed, but the last key from that range tombstone iter may still be in
966
- // the heap. We need to ensure the data underlying its corresponding key
967
- // Slice is still alive. We do so by popping the range tombstone key from
968
- // heap before calling iter->Next(). Technically, this change is not needed:
969
- // if there is a range tombstone end key that is after file boundary
970
- // sentinel key in minHeap_, the range tombstone end key must have been
971
- // truncated at file boundary. The underlying data of the range tombstone
972
- // end key Slice is the SST file's largest internal key stored as file
973
- // metadata in Version. However, since there are too many implicit
974
- // assumptions made, it is safer to just ensure range tombstone iter is
975
- // still alive.
976
- minHeap_.pop();
977
- // Remove last SST file's range tombstone end key if there is one.
978
- // This means file boundary is before range tombstone end key,
979
- // which could happen when a range tombstone and a user key
980
- // straddle two SST files. Note that in TruncatedRangeDelIterator
981
- // constructor, parsed_largest.sequence is decremented 1 in this case.
982
- // Maintains Invariant(rti) that at most one
983
- // pinned_heap_item_[current->level] is in minHeap_.
984
- if (range_tombstone_iters_[current->level] &&
985
- range_tombstone_iters_[current->level]->Valid()) {
986
- if (!minHeap_.empty() && minHeap_.top()->level == current->level) {
987
- assert(minHeap_.top()->type == HeapItem::Type::DELETE_RANGE_END);
988
- minHeap_.pop();
989
- // Invariant(active_): we are about to enter a new SST file with new
990
- // range_tombstone_iters[current->level]. Either it is !Valid() or its
991
- // start key is going to be added to minHeap_.
992
- active_.erase(current->level);
993
- } else {
994
- // range tombstone is still valid, but it is not on heap.
995
- // This should only happen if the range tombstone is over iterator
996
- // upper bound.
997
- assert(iterate_upper_bound_ &&
998
- comparator_->user_comparator()->CompareWithoutTimestamp(
999
- range_tombstone_iters_[current->level]->start_key().user_key,
1000
- true /* a_has_ts */, *iterate_upper_bound_,
1001
- false /* b_has_ts */) >= 0);
1002
- }
1003
- }
1004
- // LevelIterator enters a new SST file
1005
- current->iter.Next();
1006
- // Invariant(children_): current is popped from heap and added back only if
1007
- // it is valid
1008
- if (current->iter.Valid()) {
1009
- assert(current->iter.status().ok());
1010
- minHeap_.push(current);
1011
- } else {
1012
- // TODO(cbi): check status and early return if non-ok.
1013
- considerStatus(current->iter.status());
1014
- }
1015
- // Invariants (rti) and (phi)
1016
- if (range_tombstone_iters_[current->level] &&
1017
- range_tombstone_iters_[current->level]->Valid()) {
1018
- InsertRangeTombstoneToMinHeap(current->level);
1019
- }
1020
- return true /* current key deleted */;
1021
- }
1022
- assert(current->type == HeapItem::Type::ITERATOR);
1023
- // Point key case: check active_ for range tombstone coverage.
1024
- ParsedInternalKey pik;
1025
- ParseInternalKey(current->iter.key(), &pik, false).PermitUncheckedError();
1026
- if (!active_.empty()) {
1027
- auto i = *active_.begin();
1028
- if (i < current->level) {
1029
- // range tombstone is from a newer level, definitely covers
1030
- assert(comparator_->Compare(range_tombstone_iters_[i]->start_key(),
1031
- pik) <= 0);
1032
- assert(comparator_->Compare(pik, range_tombstone_iters_[i]->end_key()) <
1033
- 0);
1034
- std::string target;
1035
- AppendInternalKey(&target, range_tombstone_iters_[i]->end_key());
1036
- SeekImpl(target, current->level, true);
1037
- return true /* current key deleted */;
1038
- } else if (i == current->level) {
1039
- // range tombstone is from the same level as current, check sequence
1040
- // number. By `active_` we know current key is between start key and end
1041
- // key.
1042
- assert(comparator_->Compare(range_tombstone_iters_[i]->start_key(),
1043
- pik) <= 0);
1044
- assert(comparator_->Compare(pik, range_tombstone_iters_[i]->end_key()) <
1045
- 0);
1046
- if (pik.sequence < range_tombstone_iters_[current->level]->seq()) {
1047
- // covered by range tombstone
1048
- current->iter.Next();
1049
- // Invariant (children_)
1050
- if (current->iter.Valid()) {
1051
- minHeap_.replace_top(current);
1052
- } else {
1053
- considerStatus(current->iter.status());
1054
- minHeap_.pop();
1055
- }
1056
- return true /* current key deleted */;
1057
- } else {
1058
- return false /* current key not deleted */;
1059
- }
1060
- } else {
1061
- return false /* current key not deleted */;
1062
- // range tombstone from an older sorted run with current key < end key.
1063
- // current key is not deleted and the older sorted run will have its range
1064
- // tombstone updated when the range tombstone's end key are popped from
1065
- // minHeap_.
1066
- }
1067
- }
1068
- // we can reach here only if active_ is empty
1069
- assert(active_.empty());
1070
- assert(minHeap_.top()->type == HeapItem::Type::ITERATOR);
1071
- return false /* current key not deleted */;
1072
- }
1073
-
1074
- void MergingIterator::SeekForPrevImpl(const Slice& target,
1075
- size_t starting_level,
1076
- bool range_tombstone_reseek) {
1077
- // active range tombstones before `starting_level` remain active
1078
- ClearHeaps(false /* clear_active */);
1079
- InitMaxHeap();
1080
- ParsedInternalKey pik;
1081
- if (!range_tombstone_iters_.empty()) {
1082
- ParseInternalKey(target, &pik, false).PermitUncheckedError();
1083
- }
1084
- for (size_t level = 0; level < starting_level; ++level) {
1085
- PERF_TIMER_GUARD(seek_max_heap_time);
1086
- AddToMaxHeapOrCheckStatus(&children_[level]);
1087
- }
1088
- if (!range_tombstone_iters_.empty()) {
1089
- // Add range tombstones before starting_level.
1090
- for (size_t level = 0; level < starting_level; ++level) {
1091
- if (range_tombstone_iters_[level] &&
1092
- range_tombstone_iters_[level]->Valid()) {
1093
- assert(static_cast<bool>(active_.count(level)) ==
1094
- (pinned_heap_item_[level].type ==
1095
- HeapItem::Type::DELETE_RANGE_START));
1096
- maxHeap_->push(&pinned_heap_item_[level]);
1097
- } else {
1098
- assert(!active_.count(level));
1099
- }
1100
- }
1101
- // levels >= starting_level will be reseeked below,
1102
- active_.erase(active_.lower_bound(starting_level), active_.end());
1103
- }
1104
-
1105
- IterKey current_search_key;
1106
- current_search_key.SetInternalKey(target, false /* copy */);
1107
- // Seek target might change to some range tombstone end key, so
1108
- // we need to remember them for async requests.
1109
- // (level, target) pairs
1110
- autovector<std::pair<size_t, std::string>> prefetched_target;
1111
- for (auto level = starting_level; level < children_.size(); ++level) {
1112
- {
1113
- PERF_TIMER_GUARD(seek_child_seek_time);
1114
- children_[level].iter.SeekForPrev(current_search_key.GetInternalKey());
1115
- }
1116
-
1117
- PERF_COUNTER_ADD(seek_child_seek_count, 1);
1118
-
1119
- if (!range_tombstone_iters_.empty()) {
1120
- if (range_tombstone_reseek) {
1121
- // This seek is to some range tombstone end key.
1122
- // Should only happen when there are range tombstones.
1123
- PERF_COUNTER_ADD(internal_range_del_reseek_count, 1);
1124
- }
1125
- if (children_[level].iter.status().IsTryAgain()) {
1126
- prefetched_target.emplace_back(
1127
- level, current_search_key.GetInternalKey().ToString());
1128
- }
1129
- UnownedPtr<TruncatedRangeDelIterator> range_tombstone_iter =
1130
- range_tombstone_iters_[level].get();
1131
- if (range_tombstone_iter) {
1132
- range_tombstone_iter->SeekForPrev(current_search_key.GetUserKey());
1133
- if (range_tombstone_iter->Valid()) {
1134
- InsertRangeTombstoneToMaxHeap(
1135
- level, comparator_->Compare(range_tombstone_iter->end_key(),
1136
- pik) <= 0 /* end_key */);
1137
- // start key <= current_search_key guaranteed by the Seek() call above
1138
- // Only interested in user key coverage since older sorted runs must
1139
- // have smaller sequence numbers than this tombstone.
1140
- if (comparator_->user_comparator()->Compare(
1141
- current_search_key.GetUserKey(),
1142
- range_tombstone_iter->end_key().user_key) < 0) {
1143
- range_tombstone_reseek = true;
1144
- current_search_key.SetInternalKey(
1145
- range_tombstone_iter->start_key().user_key, kMaxSequenceNumber,
1146
- kValueTypeForSeekForPrev);
1147
- }
1148
- }
1149
- }
1150
- }
1151
- // child.iter.status() is set to Status::TryAgain indicating asynchronous
1152
- // request for retrieval of data blocks has been submitted. So it should
1153
- // return at this point and Seek should be called again to retrieve the
1154
- // requested block and add the child to min heap.
1155
- if (children_[level].iter.status().IsTryAgain()) {
1156
- continue;
1157
- }
1158
- {
1159
- // Strictly, we timed slightly more than min heap operation,
1160
- // but these operations are very cheap.
1161
- PERF_TIMER_GUARD(seek_max_heap_time);
1162
- AddToMaxHeapOrCheckStatus(&children_[level]);
1163
- }
1164
- }
1165
-
1166
- if (range_tombstone_iters_.empty()) {
1167
- for (auto& child : children_) {
1168
- if (child.iter.status().IsTryAgain()) {
1169
- child.iter.SeekForPrev(target);
1170
- {
1171
- PERF_TIMER_GUARD(seek_min_heap_time);
1172
- AddToMaxHeapOrCheckStatus(&child);
1173
- }
1174
- PERF_COUNTER_ADD(number_async_seek, 1);
1175
- }
1176
- }
1177
- } else {
1178
- for (auto& prefetch : prefetched_target) {
1179
- // (level, target) pairs
1180
- children_[prefetch.first].iter.SeekForPrev(prefetch.second);
1181
- {
1182
- PERF_TIMER_GUARD(seek_max_heap_time);
1183
- AddToMaxHeapOrCheckStatus(&children_[prefetch.first]);
1184
- }
1185
- PERF_COUNTER_ADD(number_async_seek, 1);
1186
- }
1187
- }
1188
- }
1189
-
1190
- // See more in comments above SkipNextDeleted().
1191
- // REQUIRES:
1192
- // - max heap is currently not empty, and iter is in kReverse direction.
1193
- // - maxHeap_ top is not DELETE_RANGE_END (so that `active_` is current).
1194
- bool MergingIterator::SkipPrevDeleted() {
1195
- // 3 types of keys:
1196
- // - point key
1197
- // - file boundary sentinel keys
1198
- // - range deletion start key
1199
- auto current = maxHeap_->top();
1200
- if (current->type == HeapItem::Type::DELETE_RANGE_START) {
1201
- active_.erase(current->level);
1202
- assert(range_tombstone_iters_[current->level] &&
1203
- range_tombstone_iters_[current->level]->Valid());
1204
- range_tombstone_iters_[current->level]->Prev();
1205
- if (range_tombstone_iters_[current->level]->Valid()) {
1206
- InsertRangeTombstoneToMaxHeap(current->level, true /* end_key */,
1207
- true /* replace_top */);
1208
- } else {
1209
- maxHeap_->pop();
1210
- }
1211
- return true /* current key deleted */;
1212
- }
1213
- if (current->iter.IsDeleteRangeSentinelKey()) {
1214
- // LevelIterator enters a new SST file
1215
- maxHeap_->pop();
1216
- // Remove last SST file's range tombstone key if there is one.
1217
- if (!maxHeap_->empty() && maxHeap_->top()->level == current->level &&
1218
- maxHeap_->top()->type == HeapItem::Type::DELETE_RANGE_START) {
1219
- maxHeap_->pop();
1220
- active_.erase(current->level);
1221
- }
1222
- current->iter.Prev();
1223
- if (current->iter.Valid()) {
1224
- assert(current->iter.status().ok());
1225
- maxHeap_->push(current);
1226
- } else {
1227
- considerStatus(current->iter.status());
1228
- }
1229
-
1230
- if (range_tombstone_iters_[current->level] &&
1231
- range_tombstone_iters_[current->level]->Valid()) {
1232
- InsertRangeTombstoneToMaxHeap(current->level);
1233
- }
1234
- return true /* current key deleted */;
1235
- }
1236
- assert(current->type == HeapItem::Type::ITERATOR);
1237
- // Point key case: check active_ for range tombstone coverage.
1238
- ParsedInternalKey pik;
1239
- ParseInternalKey(current->iter.key(), &pik, false).PermitUncheckedError();
1240
- if (!active_.empty()) {
1241
- auto i = *active_.begin();
1242
- if (i < current->level) {
1243
- // range tombstone is from a newer level, definitely covers
1244
- assert(comparator_->Compare(range_tombstone_iters_[i]->start_key(),
1245
- pik) <= 0);
1246
- assert(comparator_->Compare(pik, range_tombstone_iters_[i]->end_key()) <
1247
- 0);
1248
- std::string target;
1249
- AppendInternalKey(&target, range_tombstone_iters_[i]->start_key());
1250
- // This is different from SkipNextDeleted() which does reseek at sorted
1251
- // runs >= level (instead of i+1 here). With min heap, if level L is at
1252
- // top of the heap, then levels <L all have internal keys > level L's
1253
- // current internal key, which means levels <L are already at a different
1254
- // user key. With max heap, if level L is at top of the heap, then levels
1255
- // <L all have internal keys smaller than level L's current internal key,
1256
- // which might still be the same user key.
1257
- SeekForPrevImpl(target, i + 1, true);
1258
- return true /* current key deleted */;
1259
- } else if (i == current->level) {
1260
- // By `active_` we know current key is between start key and end key.
1261
- assert(comparator_->Compare(range_tombstone_iters_[i]->start_key(),
1262
- pik) <= 0);
1263
- assert(comparator_->Compare(pik, range_tombstone_iters_[i]->end_key()) <
1264
- 0);
1265
- if (pik.sequence < range_tombstone_iters_[current->level]->seq()) {
1266
- current->iter.Prev();
1267
- if (current->iter.Valid()) {
1268
- maxHeap_->replace_top(current);
1269
- } else {
1270
- considerStatus(current->iter.status());
1271
- maxHeap_->pop();
1272
- }
1273
- return true /* current key deleted */;
1274
- } else {
1275
- return false /* current key not deleted */;
1276
- }
1277
- } else {
1278
- return false /* current key not deleted */;
1279
- }
1280
- }
1281
-
1282
- assert(active_.empty());
1283
- assert(maxHeap_->top()->type == HeapItem::Type::ITERATOR);
1284
- return false /* current key not deleted */;
1285
- }
1286
-
1287
- void MergingIterator::AddToMinHeapOrCheckStatus(HeapItem* child) {
1288
- // Invariant(children_)
1289
- if (child->iter.Valid()) {
1290
- assert(child->iter.status().ok());
1291
- minHeap_.push(child);
1292
- } else {
1293
- considerStatus(child->iter.status());
1294
- }
1295
- }
1296
-
1297
- void MergingIterator::AddToMaxHeapOrCheckStatus(HeapItem* child) {
1298
- if (child->iter.Valid()) {
1299
- assert(child->iter.status().ok());
1300
- maxHeap_->push(child);
1301
- } else {
1302
- considerStatus(child->iter.status());
1303
- }
1304
- }
1305
-
1306
- // Advance all non current_ child to > current_.key().
1307
- // We advance current_ after the this function call as it does not require
1308
- // Seek().
1309
- // Advance all range tombstones iters, including the one corresponding to
1310
- // current_, to the first tombstone with end_key > current_.key().
1311
- // TODO: potentially do cascading seek here too
1312
- // TODO: show that invariants hold
1313
- void MergingIterator::SwitchToForward() {
1314
- ClearHeaps();
1315
- Slice target = key();
1316
- for (auto& child : children_) {
1317
- if (&child.iter != current_) {
1318
- child.iter.Seek(target);
1319
- // child.iter.status() is set to Status::TryAgain indicating asynchronous
1320
- // request for retrieval of data blocks has been submitted. So it should
1321
- // return at this point and Seek should be called again to retrieve the
1322
- // requested block and add the child to min heap.
1323
- if (child.iter.status() == Status::TryAgain()) {
1324
- continue;
1325
- }
1326
- if (child.iter.Valid() && comparator_->Equal(target, child.iter.key())) {
1327
- assert(child.iter.status().ok());
1328
- child.iter.Next();
1329
- }
1330
- }
1331
- AddToMinHeapOrCheckStatus(&child);
1332
- }
1333
-
1334
- for (auto& child : children_) {
1335
- if (child.iter.status() == Status::TryAgain()) {
1336
- child.iter.Seek(target);
1337
- if (child.iter.Valid() && comparator_->Equal(target, child.iter.key())) {
1338
- assert(child.iter.status().ok());
1339
- child.iter.Next();
1340
- }
1341
- AddToMinHeapOrCheckStatus(&child);
1342
- }
1343
- }
1344
-
1345
- // Current range tombstone iter also needs to seek for the following case:
1346
- // Previous direction is backward, so range tombstone iter may point to a
1347
- // tombstone before current_. If there is no such tombstone, then the range
1348
- // tombstone iter is !Valid(). Need to reseek here to make it valid again.
1349
- if (!range_tombstone_iters_.empty()) {
1350
- ParsedInternalKey pik;
1351
- ParseInternalKey(target, &pik, false /* log_err_key */)
1352
- .PermitUncheckedError();
1353
- for (size_t i = 0; i < range_tombstone_iters_.size(); ++i) {
1354
- UnownedPtr<TruncatedRangeDelIterator> iter =
1355
- range_tombstone_iters_[i].get();
1356
- if (iter) {
1357
- iter->Seek(pik.user_key);
1358
- // The while loop is needed as the Seek() call above is only for user
1359
- // key. We could have a range tombstone with end_key covering user_key,
1360
- // but still is smaller than target. This happens when the range
1361
- // tombstone is truncated at iter.largest_.
1362
- while (iter->Valid() &&
1363
- comparator_->Compare(iter->end_key(), pik) <= 0) {
1364
- iter->Next();
1365
- }
1366
- if (range_tombstone_iters_[i]->Valid()) {
1367
- InsertRangeTombstoneToMinHeap(
1368
- i, comparator_->Compare(range_tombstone_iters_[i]->start_key(),
1369
- pik) > 0 /* start_key */);
1370
- }
1371
- }
1372
- }
1373
- }
1374
-
1375
- direction_ = kForward;
1376
- assert(current_ == CurrentForward());
1377
- }
1378
-
1379
- // Advance all range tombstones iters, including the one corresponding to
1380
- // current_, to the first tombstone with start_key <= current_.key().
1381
- void MergingIterator::SwitchToBackward() {
1382
- ClearHeaps();
1383
- InitMaxHeap();
1384
- Slice target = key();
1385
- for (auto& child : children_) {
1386
- if (&child.iter != current_) {
1387
- child.iter.SeekForPrev(target);
1388
- TEST_SYNC_POINT_CALLBACK("MergeIterator::Prev:BeforePrev", &child);
1389
- if (child.iter.Valid() && comparator_->Equal(target, child.iter.key())) {
1390
- assert(child.iter.status().ok());
1391
- child.iter.Prev();
1392
- }
1393
- }
1394
- AddToMaxHeapOrCheckStatus(&child);
1395
- }
1396
-
1397
- ParsedInternalKey pik;
1398
- ParseInternalKey(target, &pik, false /* log_err_key */)
1399
- .PermitUncheckedError();
1400
- for (size_t i = 0; i < range_tombstone_iters_.size(); ++i) {
1401
- UnownedPtr<TruncatedRangeDelIterator> iter =
1402
- range_tombstone_iters_[i].get();
1403
- if (iter) {
1404
- iter->SeekForPrev(pik.user_key);
1405
- // Since the SeekForPrev() call above is only for user key,
1406
- // we may end up with some range tombstone with start key having the
1407
- // same user key at current_, but with a smaller sequence number. This
1408
- // makes current_ not at maxHeap_ top for the CurrentReverse() call
1409
- // below. If there is a range tombstone start key with the same user
1410
- // key and the same sequence number as current_.key(), it will be fine as
1411
- // in InsertRangeTombstoneToMaxHeap() we change op_type to be the smallest
1412
- // op_type.
1413
- while (iter->Valid() &&
1414
- comparator_->Compare(iter->start_key(), pik) > 0) {
1415
- iter->Prev();
1416
- }
1417
- if (iter->Valid()) {
1418
- InsertRangeTombstoneToMaxHeap(
1419
- i, comparator_->Compare(range_tombstone_iters_[i]->end_key(),
1420
- pik) <= 0 /* end_key */);
1421
- }
1422
- }
1423
- }
1424
-
1425
- direction_ = kReverse;
1426
- if (!prefix_seek_mode_) {
1427
- // Note that we don't do assert(current_ == CurrentReverse()) here
1428
- // because it is possible to have some keys larger than the seek-key
1429
- // inserted between Seek() and SeekToLast(), which makes current_ not
1430
- // equal to CurrentReverse().
1431
- current_ = CurrentReverse();
1432
- }
1433
- assert(current_ == CurrentReverse());
1434
- }
1435
-
1436
- void MergingIterator::ClearHeaps(bool clear_active) {
1437
- minHeap_.clear();
1438
- if (maxHeap_) {
1439
- maxHeap_->clear();
1440
- }
1441
- if (clear_active) {
1442
- active_.clear();
1443
- }
1444
- }
1445
-
1446
- void MergingIterator::InitMaxHeap() {
1447
- if (!maxHeap_) {
1448
- maxHeap_ =
1449
- std::make_unique<MergerMaxIterHeap>(MaxHeapItemComparator(comparator_));
1450
- }
1451
- }
1452
-
1453
- // Assume there is a next key that is not covered by range tombstone.
1454
- // Pre-condition:
1455
- // - Invariants (3) and (4)
1456
- // - There is some k where k <= children_[i].iter.key() <= LevelNextVisible(i,
1457
- // k) for all levels i (LevelNextVisible() defined in Seek()).
1458
- //
1459
- // Define NextVisible(k) to be the first key >= k from among children_ that
1460
- // is not covered by any range tombstone.
1461
- // Post-condition:
1462
- // - Invariants (1)-(4) hold
1463
- // - (*): minHeap_->top()->key() == NextVisible(k)
1464
- //
1465
- // Loop invariants:
1466
- // - Invariants (3) and (4)
1467
- // - (*): k <= children_[i].iter.key() <= LevelNextVisible(i, k)
1468
- //
1469
- // Progress: minHeap_.top()->key() is non-decreasing and strictly increases in
1470
- // a finite number of iterations.
1471
- // TODO: it is possible to call SeekImpl(k2) after SeekImpl(k1) with
1472
- // k2 < k1 in the same FindNextVisibleKey(). For example, l1 has a range
1473
- // tombstone [2,3) and l2 has a range tombstone [1, 4). Point key 1 from l5
1474
- // triggers SeekImpl(4 /* target */, 5). Then point key 2 from l3 triggers
1475
- // SeekImpl(3 /* target */, 3).
1476
- // Ideally we should only move iterators forward in SeekImpl(), and the
1477
- // progress condition can be made simpler: iterator only moves forward.
1478
- //
1479
- // Proof sketch:
1480
- // Post-condition:
1481
- // Invariant (1) holds when this method returns:
1482
- // Ignoring the empty minHeap_ case, there are two cases:
1483
- // Case 1: active_ is empty and !minHeap_.top()->iter.IsDeleteRangeSentinelKey()
1484
- // By invariants (rti) and (active_), active_ being empty means if a
1485
- // pinned_heap_item_[i] is in minHeap_, it has type DELETE_RANGE_START. Note
1486
- // that PopDeleteRangeStart() was called right before the while loop condition,
1487
- // so minHeap_.top() is not of type DELETE_RANGE_START. So minHeap_.top() must
1488
- // be of type ITERATOR.
1489
- // Case 2: SkipNextDeleted() returns false. The method returns false only when
1490
- // minHeap_.top().type == ITERATOR.
1491
- //
1492
- // Invariant (2) holds when this method returns:
1493
- // From Invariant (1), minHeap_.top().type == ITERATOR. Suppose it is
1494
- // children_[i] for some i. Suppose that children_[i].iter.key() is covered by
1495
- // some range tombstone. This means there is a j <= i and a range tombstone from
1496
- // level j with start_key() < children_[i].iter.key() < end_key().
1497
- // - If range_tombstone_iters_[j]->Valid(), by Invariants (rti) and (phi),
1498
- // pinned_heap_item_[j] is in minHeap_, and pinned_heap_item_[j].tombstone_pik
1499
- // is either start or end key of this range tombstone. If
1500
- // pinned_heap_item_[j].tombstone_pik < children_[i].iter.key(), it would be at
1501
- // top of minHeap_ which would contradict Invariant (1). So
1502
- // pinned_heap_item_[j].tombstone_pik > children_[i].iter.key().
1503
- // By Invariant (3), range_tombstone_iters_[j].prev.end_key() <
1504
- // children_[i].iter.key(). We assume that in each level, range tombstones
1505
- // cover non-overlapping ranges. So range_tombstone_iters_[j] is at
1506
- // the range tombstone with start_key() < children_[i].iter.key() < end_key()
1507
- // and has its end_key() in minHeap_. By Invariants (phi) and (active_),
1508
- // j is in active_. From while loop condition, SkipNextDeleted() must have
1509
- // returned false for this method to return.
1510
- // - If j < i, then SeekImpl(range_tombstone_iters_[j']->end_key(), i)
1511
- // was called for some j' < i and j' in active_. Note that since j' is in
1512
- // active_, pinned_heap_item_[j'] is in minHeap_ and has tombstone_pik =
1513
- // range_tombstone_iters_[j']->end_key(). So
1514
- // range_tombstone_iters_[j']->end_key() must be larger than
1515
- // children_[i].iter.key() to not be at top of minHeap_. This means after
1516
- // SeekImpl(), children_[i] would be at a key > children_[i].iter.key()
1517
- // -- contradiction.
1518
- // - If j == i, children_[i]->Next() would have been called and children_[i]
1519
- // would be at a key > children_[i].iter.key() -- contradiction.
1520
- // - If !range_tombstone_iters_[j]->Valid(). Then range_tombstone_iters_[j]
1521
- // points to an SST file with all range tombstones from that file exhausted.
1522
- // The file must come before the file containing the first
1523
- // range tombstone with start_key() < children_[i].iter.key() < end_key().
1524
- // Assume files from same level have non-overlapping ranges, the current file's
1525
- // meta.largest is less than children_[i].iter.key(). So the file boundary key,
1526
- // which has value meta.largest must have been popped from minHeap_ before
1527
- // children_[i].iter.key(). So range_tombstone_iters_[j] would not point to
1528
- // this SST file -- contradiction.
1529
- // So it is impossible for children_[i].iter.key() to be covered by a range
1530
- // tombstone.
1531
- //
1532
- // Post-condition (*) holds when the function returns:
1533
- // From loop invariant (*) that k <= children_[i].iter.key() <=
1534
- // LevelNextVisible(i, k) and Invariant (2) above, when the function returns,
1535
- // minHeap_.top()->key() is the smallest LevelNextVisible(i, k) among all levels
1536
- // i. This is equal to NextVisible(k).
1537
- //
1538
- // Invariant (3) holds after each iteration:
1539
- // PopDeleteRangeStart() does not change range tombstone position.
1540
- // In SkipNextDeleted():
1541
- // - If DELETE_RANGE_END is popped from minHeap_, it means the range
1542
- // tombstone's end key is < all other point keys, so it is safe to advance to
1543
- // next range tombstone.
1544
- // - If file boundary is popped (current->iter.IsDeleteRangeSentinelKey()),
1545
- // we assume that file's last range tombstone's
1546
- // end_key <= file boundary key < all other point keys. So it is safe to
1547
- // move to the first range tombstone in the next SST file.
1548
- // - If children_[i]->Next() is called, then it is fine as it is advancing a
1549
- // point iterator.
1550
- // - If SeekImpl(target, l) is called, then (3) follows from SeekImpl()'s
1551
- // post-condition if its pre-condition holds. First pre-condition follows
1552
- // from loop invariant where Invariant (3) holds for all levels i.
1553
- // Now we should second pre-condition holds. Since Invariant (3) holds for
1554
- // all i, we have for all j <= l, range_tombstone_iters_[j].prev.end_key()
1555
- // < children_[l].iter.key(). `target` is the value of
1556
- // range_tombstone_iters_[j'].end_key() for some j' < l and j' in active_.
1557
- // By Invariant (active_) and (rti), pinned_heap_item_[j'] is in minHeap_ and
1558
- // pinned_heap_item_[j'].tombstone_pik = range_tombstone_iters_[j'].end_key().
1559
- // This end_key must be larger than children_[l].key() since it was not at top
1560
- // of minHeap_. So for all levels j <= l,
1561
- // range_tombstone_iters_[j].prev.end_key() < children_[l].iter.key() < target
1562
- //
1563
- // Invariant (4) holds after each iteration:
1564
- // A level i is inserted into active_ during calls to PopDeleteRangeStart().
1565
- // In that case, range_tombstone_iters_[i].start_key() < all point keys
1566
- // by heap property and the assumption that point keys and range tombstone keys
1567
- // are distinct.
1568
- // If SeekImpl(target, l) is called, then there is a range_tombstone_iters_[j]
1569
- // where target = range_tombstone_iters_[j]->end_key() and children_[l]->key()
1570
- // < target. By loop invariants, (3) and (4) holds for levels.
1571
- // Since target > children_[l]->key(), it also holds that for j < l,
1572
- // range_tombstone_iters_[j].prev.end_key() < target and that if j in active_,
1573
- // range_tombstone_iters_[i]->start_key() < target. So all pre-conditions of
1574
- // SeekImpl(target, l) holds, and (4) follow from its post-condition.
1575
- // All other places either in this function either advance point iterators
1576
- // or remove some level from active_, so (4) still holds.
1577
- //
1578
- // Look Invariant (*): for all level i, k <= children_[i] <= LevelNextVisible(i,
1579
- // k).
1580
- // k <= children_[i] follows from loop `progress` condition.
1581
- // Consider when children_[i] is changed for any i. It is through
1582
- // children_[i].iter.Next() or SeekImpl() in SkipNextDeleted().
1583
- // If children_[i].iter.Next() is called, there is a range tombstone from level
1584
- // i where tombstone seqno > children_[i].iter.key()'s seqno and i in active_.
1585
- // By Invariant (4), tombstone's start_key < children_[i].iter.key(). By
1586
- // invariants (active_), (phi), and (rti), tombstone's end_key is in minHeap_
1587
- // and that children_[i].iter.key() < end_key. So children_[i].iter.key() is
1588
- // not visible, and it is safe to call Next().
1589
- // If SeekImpl(target, l) is called, by its contract, when SeekImpl() returns,
1590
- // target <= children_[i]->key() <= LevelNextVisible(i, target) for i >= l,
1591
- // and children_[<l] is not touched. We know `target` is
1592
- // range_tombstone_iters_[j]->end_key() for some j < i and j is in active_.
1593
- // By Invariant (4), range_tombstone_iters_[j]->start_key() <
1594
- // children_[i].iter.key() for all i >= l. So for each level i >= l, the range
1595
- // [children_[i].iter.key(), target) is not visible. So after SeekImpl(),
1596
- // children_[i].iter.key() <= LevelNextVisible(i, target) <=
1597
- // LevelNextVisible(i, k).
1598
- //
1599
- // `Progress` holds for each iteration:
1600
- // Very sloppy intuition:
1601
- // - in PopDeleteRangeStart(): the value of a pinned_heap_item_.tombstone_pik_
1602
- // is updated from the start key to the end key of the same range tombstone.
1603
- // We assume that start key <= end key for the same range tombstone.
1604
- // - in SkipNextDeleted()
1605
- // - If the top of heap is DELETE_RANGE_END, the range tombstone is advanced
1606
- // and the relevant pinned_heap_item_.tombstone_pik is increased or popped
1607
- // from minHeap_.
1608
- // - If the top of heap is a file boundary key, then both point iter and
1609
- // range tombstone iter are advanced to the next file.
1610
- // - If the top of heap is ITERATOR and current->iter.Next() is called, it
1611
- // moves to a larger point key.
1612
- // - If the top of heap is ITERATOR and SeekImpl(k, l) is called, then all
1613
- // iterators from levels >= l are advanced to some key >= k by its contract.
1614
- // And top of minHeap_ before SeekImpl(k, l) was less than k.
1615
- // There are special cases where different heap items have the same key,
1616
- // e.g. when two range tombstone end keys share the same value). In
1617
- // these cases, iterators are being advanced, so the minimum key should increase
1618
- // in a finite number of steps.
1619
- inline void MergingIterator::FindNextVisibleKey() {
1620
- PopDeleteRangeStart();
1621
- // PopDeleteRangeStart() implies heap top is not DELETE_RANGE_START
1622
- // active_ being empty implies no DELETE_RANGE_END in heap.
1623
- // So minHeap_->top() must be of type ITERATOR.
1624
- while (
1625
- !minHeap_.empty() &&
1626
- (!active_.empty() || minHeap_.top()->iter.IsDeleteRangeSentinelKey()) &&
1627
- SkipNextDeleted()) {
1628
- PopDeleteRangeStart();
1629
- }
1630
- // Checks Invariant (1)
1631
- assert(minHeap_.empty() || minHeap_.top()->type == HeapItem::Type::ITERATOR);
1632
- }
1633
-
1634
- inline void MergingIterator::FindPrevVisibleKey() {
1635
- PopDeleteRangeEnd();
1636
- // PopDeleteRangeEnd() implies heap top is not DELETE_RANGE_END
1637
- // active_ being empty implies no DELETE_RANGE_START in heap.
1638
- // So maxHeap_->top() must be of type ITERATOR.
1639
- while (
1640
- !maxHeap_->empty() &&
1641
- (!active_.empty() || maxHeap_->top()->iter.IsDeleteRangeSentinelKey()) &&
1642
- SkipPrevDeleted()) {
1643
- PopDeleteRangeEnd();
1644
- }
1645
- }
1646
-
1647
- InternalIterator* NewMergingIterator(const InternalKeyComparator* cmp,
1648
- InternalIterator** list, int n,
1649
- Arena* arena, bool prefix_seek_mode) {
1650
- assert(n >= 0);
1651
- if (n == 0) {
1652
- return NewEmptyInternalIterator<Slice>(arena);
1653
- } else if (n == 1) {
1654
- return list[0];
1655
- } else {
1656
- if (arena == nullptr) {
1657
- return new MergingIterator(cmp, list, n, false, prefix_seek_mode);
1658
- } else {
1659
- auto mem = arena->AllocateAligned(sizeof(MergingIterator));
1660
- return new (mem) MergingIterator(cmp, list, n, true, prefix_seek_mode);
1661
- }
1662
- }
1663
- }
1664
-
1665
- MergeIteratorBuilder::MergeIteratorBuilder(
1666
- const InternalKeyComparator* comparator, Arena* a, bool prefix_seek_mode,
1667
- const Slice* iterate_upper_bound)
1668
- : first_iter(nullptr), use_merging_iter(false), arena(a) {
1669
- auto mem = arena->AllocateAligned(sizeof(MergingIterator));
1670
- merge_iter = new (mem) MergingIterator(comparator, nullptr, 0, true,
1671
- prefix_seek_mode, iterate_upper_bound);
1672
- }
1673
-
1674
- MergeIteratorBuilder::~MergeIteratorBuilder() {
1675
- if (first_iter != nullptr) {
1676
- first_iter->~InternalIterator();
1677
- }
1678
- if (merge_iter != nullptr) {
1679
- merge_iter->~MergingIterator();
1680
- }
1681
- }
1682
-
1683
- void MergeIteratorBuilder::AddIterator(InternalIterator* iter) {
1684
- if (!use_merging_iter && first_iter != nullptr) {
1685
- merge_iter->AddIterator(first_iter);
1686
- use_merging_iter = true;
1687
- first_iter = nullptr;
1688
- }
1689
- if (use_merging_iter) {
1690
- merge_iter->AddIterator(iter);
1691
- } else {
1692
- first_iter = iter;
1693
- }
1694
- }
1695
-
1696
- void MergeIteratorBuilder::AddPointAndTombstoneIterator(
1697
- InternalIterator* point_iter,
1698
- std::unique_ptr<TruncatedRangeDelIterator>&& tombstone_iter,
1699
- std::unique_ptr<TruncatedRangeDelIterator>** tombstone_iter_ptr) {
1700
- // tombstone_iter_ptr != nullptr means point_iter is a LevelIterator.
1701
- bool add_range_tombstone = tombstone_iter ||
1702
- !merge_iter->range_tombstone_iters_.empty() ||
1703
- tombstone_iter_ptr;
1704
- if (!use_merging_iter && (add_range_tombstone || first_iter)) {
1705
- use_merging_iter = true;
1706
- if (first_iter) {
1707
- merge_iter->AddIterator(first_iter);
1708
- first_iter = nullptr;
1709
- }
1710
- }
1711
- if (use_merging_iter) {
1712
- merge_iter->AddIterator(point_iter);
1713
- if (add_range_tombstone) {
1714
- // If there was a gap, fill in nullptr as empty range tombstone iterators.
1715
- while (merge_iter->range_tombstone_iters_.size() <
1716
- merge_iter->children_.size() - 1) {
1717
- merge_iter->AddRangeTombstoneIterator(nullptr);
1718
- }
1719
- merge_iter->AddRangeTombstoneIterator(std::move(tombstone_iter));
1720
- }
1721
-
1722
- if (tombstone_iter_ptr) {
1723
- // This is needed instead of setting to &range_tombstone_iters_[i]
1724
- // directly here since the memory address of range_tombstone_iters_[i]
1725
- // might change during vector resizing.
1726
- range_del_iter_ptrs_.emplace_back(
1727
- merge_iter->range_tombstone_iters_.size() - 1, tombstone_iter_ptr);
1728
- }
1729
- } else {
1730
- first_iter = point_iter;
1731
- }
1732
- }
1733
-
1734
- InternalIterator* MergeIteratorBuilder::Finish(ArenaWrappedDBIter* db_iter) {
1735
- InternalIterator* ret = nullptr;
1736
- if (!use_merging_iter) {
1737
- ret = first_iter;
1738
- first_iter = nullptr;
1739
- } else {
1740
- for (auto& p : range_del_iter_ptrs_) {
1741
- *(p.second) = &(merge_iter->range_tombstone_iters_[p.first]);
1742
- }
1743
- if (db_iter && !merge_iter->range_tombstone_iters_.empty()) {
1744
- // memtable is always the first level
1745
- db_iter->SetMemtableRangetombstoneIter(
1746
- &merge_iter->range_tombstone_iters_.front());
1747
- }
1748
- merge_iter->Finish();
1749
- ret = merge_iter;
1750
- merge_iter = nullptr;
1751
- }
1752
- return ret;
1753
- }
1754
-
1755
- } // namespace ROCKSDB_NAMESPACE