@nxtedition/rocksdb 7.0.51 → 7.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/18_04_03/000171.sst +0 -0
- package/18_04_03/000681.sst +0 -0
- package/18_04_03/000685.sst +0 -0
- package/18_04_03/000686.log +0 -0
- package/18_04_03/000690.log +0 -0
- package/18_04_03/000694.sst +0 -0
- package/18_04_03/000697.log +0 -0
- package/18_04_03/000701.log +0 -0
- package/18_04_03/000705.log +0 -0
- package/18_04_03/000709.log +0 -0
- package/18_04_03/000713.log +0 -0
- package/18_04_03/000717.log +0 -0
- package/18_04_03/000721.log +0 -0
- package/18_04_03/000725.log +0 -0
- package/18_04_03/000729.log +0 -0
- package/18_04_03/000733.log +0 -0
- package/18_04_03/000737.log +0 -0
- package/18_04_03/000741.log +0 -0
- package/18_04_03/000745.log +0 -0
- package/18_04_03/000749.log +0 -0
- package/18_04_03/000753.log +0 -0
- package/18_04_03/000757.log +0 -0
- package/18_04_03/000761.log +0 -0
- package/18_04_03/000765.log +0 -0
- package/18_04_03/000769.log +0 -0
- package/18_04_03/000773.log +0 -0
- package/18_04_03/000777.log +0 -0
- package/18_04_03/000781.log +0 -0
- package/18_04_03/000785.log +0 -0
- package/18_04_03/000789.log +0 -0
- package/18_04_03/CURRENT +1 -0
- package/18_04_03/IDENTITY +1 -0
- package/18_04_03/LOCK +0 -0
- package/18_04_03/MANIFEST-000790 +0 -0
- package/18_04_03/OPTIONS-000788 +294 -0
- package/18_04_03/OPTIONS-000792 +294 -0
- package/18_04_03/archive/000004.log +0 -0
- package/18_04_03/archive/000011.log +0 -0
- package/18_04_03/archive/000015.log +0 -0
- package/18_04_03/archive/000019.log +0 -0
- package/18_04_03/archive/000023.log +0 -0
- package/18_04_03/archive/000027.log +0 -0
- package/18_04_03/archive/000031.log +0 -0
- package/18_04_03/archive/000035.log +0 -0
- package/18_04_03/archive/000039.log +0 -0
- package/18_04_03/archive/000043.log +0 -0
- package/18_04_03/archive/000047.log +0 -0
- package/18_04_03/archive/000051.log +0 -0
- package/18_04_03/archive/000055.log +0 -0
- package/18_04_03/archive/000059.log +0 -0
- package/18_04_03/archive/000063.log +0 -0
- package/18_04_03/archive/000067.log +0 -0
- package/18_04_03/archive/000071.log +0 -0
- package/18_04_03/archive/000075.log +0 -0
- package/18_04_03/archive/000079.log +0 -0
- package/18_04_03/archive/000083.log +0 -0
- package/18_04_03/archive/000087.log +0 -0
- package/18_04_03/archive/000091.log +0 -0
- package/18_04_03/archive/000095.log +0 -0
- package/18_04_03/archive/000099.log +0 -0
- package/18_04_03/archive/000103.log +0 -0
- package/18_04_03/archive/000107.log +0 -0
- package/18_04_03/archive/000111.log +0 -0
- package/18_04_03/archive/000115.log +0 -0
- package/18_04_03/archive/000119.log +0 -0
- package/18_04_03/archive/000123.log +0 -0
- package/18_04_03/archive/000127.log +0 -0
- package/18_04_03/archive/000131.log +0 -0
- package/18_04_03/archive/000135.log +0 -0
- package/18_04_03/archive/000139.log +0 -0
- package/18_04_03/archive/000143.log +0 -0
- package/18_04_03/archive/000147.log +0 -0
- package/18_04_03/archive/000151.log +0 -0
- package/18_04_03/archive/000155.log +0 -0
- package/18_04_03/archive/000159.log +0 -0
- package/18_04_03/archive/000163.log +0 -0
- package/18_04_03/archive/000167.log +0 -0
- package/18_04_03/archive/000176.log +0 -0
- package/18_04_03/archive/000183.log +0 -0
- package/18_04_03/archive/000187.log +0 -0
- package/18_04_03/archive/000191.log +0 -0
- package/18_04_03/archive/000195.log +0 -0
- package/18_04_03/archive/000199.log +0 -0
- package/18_04_03/archive/000203.log +0 -0
- package/18_04_03/archive/000212.log +0 -0
- package/18_04_03/archive/000219.log +0 -0
- package/18_04_03/archive/000223.log +0 -0
- package/18_04_03/archive/000227.log +0 -0
- package/18_04_03/archive/000231.log +0 -0
- package/18_04_03/archive/000237.log +0 -0
- package/18_04_03/archive/000246.log +0 -0
- package/18_04_03/archive/000255.log +0 -0
- package/18_04_03/archive/000264.log +0 -0
- package/18_04_03/archive/000273.log +0 -0
- package/18_04_03/archive/000282.log +0 -0
- package/18_04_03/archive/000291.log +0 -0
- package/18_04_03/archive/000300.log +0 -0
- package/18_04_03/archive/000309.log +0 -0
- package/18_04_03/archive/000318.log +0 -0
- package/18_04_03/archive/000327.log +0 -0
- package/18_04_03/archive/000336.log +0 -0
- package/18_04_03/archive/000345.log +0 -0
- package/18_04_03/archive/000352.log +0 -0
- package/18_04_03/archive/000358.log +0 -0
- package/18_04_03/archive/000367.log +0 -0
- package/18_04_03/archive/000376.log +0 -0
- package/18_04_03/archive/000385.log +0 -0
- package/18_04_03/archive/000394.log +0 -0
- package/18_04_03/archive/000403.log +0 -0
- package/18_04_03/archive/000412.log +0 -0
- package/18_04_03/archive/000421.log +0 -0
- package/18_04_03/archive/000430.log +0 -0
- package/18_04_03/archive/000439.log +0 -0
- package/18_04_03/archive/000448.log +0 -0
- package/18_04_03/archive/000457.log +0 -0
- package/18_04_03/archive/000466.log +0 -0
- package/18_04_03/archive/000475.log +0 -0
- package/18_04_03/archive/000482.log +0 -0
- package/18_04_03/archive/000488.log +0 -0
- package/18_04_03/archive/000497.log +0 -0
- package/18_04_03/archive/000506.log +0 -0
- package/18_04_03/archive/000515.log +0 -0
- package/18_04_03/archive/000524.log +0 -0
- package/18_04_03/archive/000533.log +0 -0
- package/18_04_03/archive/000542.log +0 -0
- package/18_04_03/archive/000551.log +0 -0
- package/18_04_03/archive/000560.log +0 -0
- package/18_04_03/archive/000569.log +0 -0
- package/18_04_03/archive/000578.log +0 -0
- package/18_04_03/archive/000587.log +0 -0
- package/18_04_03/archive/000596.log +0 -0
- package/18_04_03/archive/000605.log +0 -0
- package/18_04_03/archive/000614.log +0 -0
- package/18_04_03/archive/000623.log +0 -0
- package/18_04_03/archive/000632.log +0 -0
- package/18_04_03/archive/000641.log +0 -0
- package/18_04_03/archive/000650.log +0 -0
- package/18_04_03/archive/000659.log +0 -0
- package/18_04_03/archive/000668.log +0 -0
- package/18_04_03/archive/000677.log +0 -0
- package/18_04_03.zip +0 -0
- package/deps/rocksdb/rocksdb/db/wal_manager.cc +1 -1
- package/index.js +6 -3
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
- package/tmp.mjs +34 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/18_04_03/CURRENT
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MANIFEST-000790
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fcbbe39f-f061-43fa-937a-67f4d5a3e4a5
|
package/18_04_03/LOCK
ADDED
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# This is a RocksDB option file.
|
|
2
|
+
#
|
|
3
|
+
# For detailed file format spec, please refer to the example file
|
|
4
|
+
# in examples/rocksdb_option_file_example.ini
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
[Version]
|
|
8
|
+
rocksdb_version=7.6.0
|
|
9
|
+
options_file_version=1.1
|
|
10
|
+
|
|
11
|
+
[DBOptions]
|
|
12
|
+
max_background_flushes=-1
|
|
13
|
+
compaction_readahead_size=0
|
|
14
|
+
strict_bytes_per_sync=false
|
|
15
|
+
wal_bytes_per_sync=0
|
|
16
|
+
max_open_files=-1
|
|
17
|
+
stats_history_buffer_size=1048576
|
|
18
|
+
max_total_wal_size=0
|
|
19
|
+
stats_persist_period_sec=600
|
|
20
|
+
stats_dump_period_sec=600
|
|
21
|
+
avoid_flush_during_shutdown=false
|
|
22
|
+
max_subcompactions=1
|
|
23
|
+
bytes_per_sync=0
|
|
24
|
+
delayed_write_rate=16777216
|
|
25
|
+
max_background_compactions=-1
|
|
26
|
+
max_background_jobs=4
|
|
27
|
+
delete_obsolete_files_period_micros=21600000000
|
|
28
|
+
writable_file_max_buffer_size=1048576
|
|
29
|
+
file_checksum_gen_factory=nullptr
|
|
30
|
+
allow_data_in_errors=false
|
|
31
|
+
max_bgerror_resume_count=2147483647
|
|
32
|
+
best_efforts_recovery=false
|
|
33
|
+
write_dbid_to_manifest=false
|
|
34
|
+
atomic_flush=false
|
|
35
|
+
wal_compression=kZSTD
|
|
36
|
+
manual_wal_flush=false
|
|
37
|
+
two_write_queues=false
|
|
38
|
+
avoid_flush_during_recovery=false
|
|
39
|
+
dump_malloc_stats=false
|
|
40
|
+
info_log_level=HEADER_LEVEL
|
|
41
|
+
write_thread_slow_yield_usec=3
|
|
42
|
+
allow_ingest_behind=false
|
|
43
|
+
fail_if_options_file_error=true
|
|
44
|
+
persist_stats_to_disk=false
|
|
45
|
+
WAL_ttl_seconds=0
|
|
46
|
+
bgerror_resume_retry_interval=1000000
|
|
47
|
+
allow_concurrent_memtable_write=true
|
|
48
|
+
paranoid_checks=true
|
|
49
|
+
WAL_size_limit_MB=256
|
|
50
|
+
lowest_used_cache_tier=kNonVolatileBlockTier
|
|
51
|
+
keep_log_file_num=1000
|
|
52
|
+
table_cache_numshardbits=6
|
|
53
|
+
max_file_opening_threads=16
|
|
54
|
+
use_fsync=false
|
|
55
|
+
unordered_write=true
|
|
56
|
+
random_access_max_buffer_size=1048576
|
|
57
|
+
log_readahead_size=0
|
|
58
|
+
enable_pipelined_write=false
|
|
59
|
+
wal_recovery_mode=kPointInTimeRecovery
|
|
60
|
+
db_write_buffer_size=0
|
|
61
|
+
allow_2pc=false
|
|
62
|
+
skip_checking_sst_file_sizes_on_db_open=false
|
|
63
|
+
skip_stats_update_on_db_open=false
|
|
64
|
+
recycle_log_file_num=0
|
|
65
|
+
db_host_id=__hostname__
|
|
66
|
+
access_hint_on_compaction_start=NORMAL
|
|
67
|
+
verify_sst_unique_id_in_manifest=false
|
|
68
|
+
track_and_verify_wals_in_manifest=false
|
|
69
|
+
error_if_exists=false
|
|
70
|
+
manifest_preallocation_size=4194304
|
|
71
|
+
is_fd_close_on_exec=true
|
|
72
|
+
enable_write_thread_adaptive_yield=true
|
|
73
|
+
enable_thread_tracking=false
|
|
74
|
+
avoid_unnecessary_blocking_io=true
|
|
75
|
+
allow_fallocate=true
|
|
76
|
+
max_log_file_size=0
|
|
77
|
+
advise_random_on_open=true
|
|
78
|
+
create_missing_column_families=true
|
|
79
|
+
max_write_batch_group_size_bytes=1048576
|
|
80
|
+
use_adaptive_mutex=true
|
|
81
|
+
wal_filter=nullptr
|
|
82
|
+
create_if_missing=false
|
|
83
|
+
enforce_single_del_contracts=true
|
|
84
|
+
allow_mmap_writes=false
|
|
85
|
+
log_file_time_to_roll=0
|
|
86
|
+
use_direct_io_for_flush_and_compaction=false
|
|
87
|
+
flush_verify_memtable_count=true
|
|
88
|
+
max_manifest_file_size=1073741824
|
|
89
|
+
write_thread_max_yield_usec=100
|
|
90
|
+
use_direct_reads=false
|
|
91
|
+
allow_mmap_reads=false
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
[CFOptions "default"]
|
|
95
|
+
bottommost_compression=kDisableCompressionOption
|
|
96
|
+
sample_for_compression=0
|
|
97
|
+
blob_garbage_collection_age_cutoff=0.250000
|
|
98
|
+
prepopulate_blob_cache=kDisable
|
|
99
|
+
blob_compaction_readahead_size=0
|
|
100
|
+
level0_stop_writes_trigger=36
|
|
101
|
+
min_blob_size=0
|
|
102
|
+
compaction_options_universal={allow_trivial_move=false;stop_style=kCompactionStopStyleTotalSize;min_merge_width=2;compression_size_percent=-1;max_size_amplification_percent=200;incremental=false;max_merge_width=4294967295;size_ratio=1;}
|
|
103
|
+
target_file_size_base=16000000
|
|
104
|
+
max_bytes_for_level_base=128000000
|
|
105
|
+
memtable_whole_key_filtering=true
|
|
106
|
+
blob_file_starting_level=0
|
|
107
|
+
soft_pending_compaction_bytes_limit=68719476736
|
|
108
|
+
blob_compression_type=kNoCompression
|
|
109
|
+
max_write_buffer_number=6
|
|
110
|
+
ttl=2592000
|
|
111
|
+
compaction_options_fifo={allow_compaction=false;age_for_warm=0;max_table_files_size=1073741824;}
|
|
112
|
+
check_flush_compaction_key_order=true
|
|
113
|
+
max_successive_merges=0
|
|
114
|
+
inplace_update_num_locks=10000
|
|
115
|
+
enable_blob_garbage_collection=false
|
|
116
|
+
arena_block_size=1048576
|
|
117
|
+
bottommost_temperature=kUnknown
|
|
118
|
+
bottommost_compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=0;max_dict_bytes=0;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
119
|
+
target_file_size_multiplier=1
|
|
120
|
+
max_bytes_for_level_multiplier_additional=1:1:1:1:1:1:1
|
|
121
|
+
blob_garbage_collection_force_threshold=1.000000
|
|
122
|
+
enable_blob_files=false
|
|
123
|
+
level0_slowdown_writes_trigger=20
|
|
124
|
+
compression=kZSTD
|
|
125
|
+
level0_file_num_compaction_trigger=2
|
|
126
|
+
blob_file_size=268435456
|
|
127
|
+
prefix_extractor=nullptr
|
|
128
|
+
max_bytes_for_level_multiplier=10.000000
|
|
129
|
+
write_buffer_size=67108864
|
|
130
|
+
disable_auto_compactions=false
|
|
131
|
+
max_compaction_bytes=400000000
|
|
132
|
+
memtable_huge_page_size=0
|
|
133
|
+
compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=1638400;max_dict_bytes=16384;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
134
|
+
hard_pending_compaction_bytes_limit=274877906944
|
|
135
|
+
periodic_compaction_seconds=0
|
|
136
|
+
paranoid_file_checks=false
|
|
137
|
+
experimental_mempurge_threshold=0.000000
|
|
138
|
+
memtable_prefix_bloom_size_ratio=0.020000
|
|
139
|
+
max_sequential_skip_in_iterations=8
|
|
140
|
+
report_bg_io_stats=false
|
|
141
|
+
sst_partitioner_factory=nullptr
|
|
142
|
+
compaction_pri=kMinOverlappingRatio
|
|
143
|
+
compaction_style=kCompactionStyleLevel
|
|
144
|
+
compaction_filter_factory=nullptr
|
|
145
|
+
memtable_factory=SkipListFactory
|
|
146
|
+
comparator=leveldb.BytewiseComparator
|
|
147
|
+
bloom_locality=0
|
|
148
|
+
min_write_buffer_number_to_merge=2
|
|
149
|
+
max_write_buffer_number_to_maintain=0
|
|
150
|
+
compaction_filter=nullptr
|
|
151
|
+
force_consistency_checks=true
|
|
152
|
+
optimize_filters_for_hits=false
|
|
153
|
+
table_factory=BlockBasedTable
|
|
154
|
+
max_write_buffer_size_to_maintain=0
|
|
155
|
+
memtable_insert_with_hint_prefix_extractor=nullptr
|
|
156
|
+
level_compaction_dynamic_level_bytes=false
|
|
157
|
+
preclude_last_level_data_seconds=0
|
|
158
|
+
inplace_update_support=false
|
|
159
|
+
merge_operator=MaxRevOperator
|
|
160
|
+
num_levels=7
|
|
161
|
+
|
|
162
|
+
[TableOptions/BlockBasedTable "default"]
|
|
163
|
+
metadata_cache_options={unpartitioned_pinning=kFallback;partition_pinning=kFallback;top_level_index_pinning=kFallback;}
|
|
164
|
+
read_amp_bytes_per_bit=0
|
|
165
|
+
verify_compression=false
|
|
166
|
+
format_version=5
|
|
167
|
+
optimize_filters_for_memory=true
|
|
168
|
+
partition_filters=false
|
|
169
|
+
detect_filter_construct_corruption=false
|
|
170
|
+
initial_auto_readahead_size=8192
|
|
171
|
+
max_auto_readahead_size=262144
|
|
172
|
+
enable_index_compression=true
|
|
173
|
+
checksum=kXXH3
|
|
174
|
+
index_block_restart_interval=1
|
|
175
|
+
pin_top_level_index_and_filter=true
|
|
176
|
+
block_align=false
|
|
177
|
+
block_size=4096
|
|
178
|
+
index_type=kBinarySearch
|
|
179
|
+
filter_policy=ribbonfilter:10:1
|
|
180
|
+
metadata_block_size=4096
|
|
181
|
+
no_block_cache=false
|
|
182
|
+
index_shortening=kShortenSeparators
|
|
183
|
+
whole_key_filtering=true
|
|
184
|
+
block_size_deviation=10
|
|
185
|
+
data_block_index_type=kDataBlockBinaryAndHash
|
|
186
|
+
data_block_hash_table_util_ratio=0.750000
|
|
187
|
+
cache_index_and_filter_blocks=true
|
|
188
|
+
prepopulate_block_cache=kDisable
|
|
189
|
+
block_restart_interval=16
|
|
190
|
+
pin_l0_filter_and_index_blocks_in_cache=false
|
|
191
|
+
cache_index_and_filter_blocks_with_high_priority=true
|
|
192
|
+
flush_block_policy_factory=FlushBlockBySizePolicyFactory
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
[CFOptions "meta"]
|
|
196
|
+
bottommost_compression=kDisableCompressionOption
|
|
197
|
+
sample_for_compression=0
|
|
198
|
+
blob_garbage_collection_age_cutoff=0.250000
|
|
199
|
+
prepopulate_blob_cache=kDisable
|
|
200
|
+
blob_compaction_readahead_size=0
|
|
201
|
+
level0_stop_writes_trigger=36
|
|
202
|
+
min_blob_size=0
|
|
203
|
+
compaction_options_universal={allow_trivial_move=false;stop_style=kCompactionStopStyleTotalSize;min_merge_width=2;compression_size_percent=-1;max_size_amplification_percent=200;incremental=false;max_merge_width=4294967295;size_ratio=1;}
|
|
204
|
+
target_file_size_base=33554432
|
|
205
|
+
max_bytes_for_level_base=268435456
|
|
206
|
+
memtable_whole_key_filtering=false
|
|
207
|
+
blob_file_starting_level=0
|
|
208
|
+
soft_pending_compaction_bytes_limit=68719476736
|
|
209
|
+
blob_compression_type=kNoCompression
|
|
210
|
+
max_write_buffer_number=6
|
|
211
|
+
ttl=2592000
|
|
212
|
+
compaction_options_fifo={allow_compaction=false;age_for_warm=0;max_table_files_size=1073741824;}
|
|
213
|
+
check_flush_compaction_key_order=true
|
|
214
|
+
max_successive_merges=0
|
|
215
|
+
inplace_update_num_locks=10000
|
|
216
|
+
enable_blob_garbage_collection=false
|
|
217
|
+
arena_block_size=1048576
|
|
218
|
+
bottommost_temperature=kUnknown
|
|
219
|
+
bottommost_compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=0;max_dict_bytes=0;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
220
|
+
target_file_size_multiplier=1
|
|
221
|
+
max_bytes_for_level_multiplier_additional=1:1:1:1:1:1:1
|
|
222
|
+
blob_garbage_collection_force_threshold=1.000000
|
|
223
|
+
enable_blob_files=false
|
|
224
|
+
level0_slowdown_writes_trigger=20
|
|
225
|
+
compression=kZSTD
|
|
226
|
+
level0_file_num_compaction_trigger=2
|
|
227
|
+
blob_file_size=268435456
|
|
228
|
+
prefix_extractor=nullptr
|
|
229
|
+
max_bytes_for_level_multiplier=10.000000
|
|
230
|
+
write_buffer_size=67108864
|
|
231
|
+
disable_auto_compactions=false
|
|
232
|
+
max_compaction_bytes=838860800
|
|
233
|
+
memtable_huge_page_size=0
|
|
234
|
+
compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=1638400;max_dict_bytes=16384;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
235
|
+
hard_pending_compaction_bytes_limit=274877906944
|
|
236
|
+
periodic_compaction_seconds=0
|
|
237
|
+
paranoid_file_checks=false
|
|
238
|
+
experimental_mempurge_threshold=0.000000
|
|
239
|
+
memtable_prefix_bloom_size_ratio=0.000000
|
|
240
|
+
max_sequential_skip_in_iterations=8
|
|
241
|
+
report_bg_io_stats=false
|
|
242
|
+
sst_partitioner_factory=nullptr
|
|
243
|
+
compaction_pri=kMinOverlappingRatio
|
|
244
|
+
compaction_style=kCompactionStyleLevel
|
|
245
|
+
compaction_filter_factory=nullptr
|
|
246
|
+
memtable_factory=SkipListFactory
|
|
247
|
+
comparator=leveldb.BytewiseComparator
|
|
248
|
+
bloom_locality=0
|
|
249
|
+
min_write_buffer_number_to_merge=2
|
|
250
|
+
max_write_buffer_number_to_maintain=0
|
|
251
|
+
compaction_filter=nullptr
|
|
252
|
+
force_consistency_checks=true
|
|
253
|
+
optimize_filters_for_hits=false
|
|
254
|
+
table_factory=BlockBasedTable
|
|
255
|
+
max_write_buffer_size_to_maintain=0
|
|
256
|
+
memtable_insert_with_hint_prefix_extractor=nullptr
|
|
257
|
+
level_compaction_dynamic_level_bytes=false
|
|
258
|
+
preclude_last_level_data_seconds=0
|
|
259
|
+
inplace_update_support=false
|
|
260
|
+
merge_operator=nullptr
|
|
261
|
+
num_levels=7
|
|
262
|
+
|
|
263
|
+
[TableOptions/BlockBasedTable "meta"]
|
|
264
|
+
metadata_cache_options={unpartitioned_pinning=kFallback;partition_pinning=kFallback;top_level_index_pinning=kFallback;}
|
|
265
|
+
read_amp_bytes_per_bit=0
|
|
266
|
+
verify_compression=false
|
|
267
|
+
format_version=5
|
|
268
|
+
optimize_filters_for_memory=true
|
|
269
|
+
partition_filters=false
|
|
270
|
+
detect_filter_construct_corruption=false
|
|
271
|
+
initial_auto_readahead_size=8192
|
|
272
|
+
max_auto_readahead_size=262144
|
|
273
|
+
enable_index_compression=true
|
|
274
|
+
checksum=kXXH3
|
|
275
|
+
index_block_restart_interval=1
|
|
276
|
+
pin_top_level_index_and_filter=true
|
|
277
|
+
block_align=false
|
|
278
|
+
block_size=4096
|
|
279
|
+
index_type=kBinarySearch
|
|
280
|
+
filter_policy=ribbonfilter:10:0
|
|
281
|
+
metadata_block_size=4096
|
|
282
|
+
no_block_cache=false
|
|
283
|
+
index_shortening=kShortenSeparators
|
|
284
|
+
whole_key_filtering=true
|
|
285
|
+
block_size_deviation=10
|
|
286
|
+
data_block_index_type=kDataBlockBinarySearch
|
|
287
|
+
data_block_hash_table_util_ratio=0.750000
|
|
288
|
+
cache_index_and_filter_blocks=true
|
|
289
|
+
prepopulate_block_cache=kDisable
|
|
290
|
+
block_restart_interval=16
|
|
291
|
+
pin_l0_filter_and_index_blocks_in_cache=false
|
|
292
|
+
cache_index_and_filter_blocks_with_high_priority=true
|
|
293
|
+
flush_block_policy_factory=FlushBlockBySizePolicyFactory
|
|
294
|
+
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# This is a RocksDB option file.
|
|
2
|
+
#
|
|
3
|
+
# For detailed file format spec, please refer to the example file
|
|
4
|
+
# in examples/rocksdb_option_file_example.ini
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
[Version]
|
|
8
|
+
rocksdb_version=7.6.0
|
|
9
|
+
options_file_version=1.1
|
|
10
|
+
|
|
11
|
+
[DBOptions]
|
|
12
|
+
max_background_flushes=-1
|
|
13
|
+
compaction_readahead_size=0
|
|
14
|
+
strict_bytes_per_sync=false
|
|
15
|
+
wal_bytes_per_sync=0
|
|
16
|
+
max_open_files=-1
|
|
17
|
+
stats_history_buffer_size=1048576
|
|
18
|
+
max_total_wal_size=0
|
|
19
|
+
stats_persist_period_sec=600
|
|
20
|
+
stats_dump_period_sec=600
|
|
21
|
+
avoid_flush_during_shutdown=false
|
|
22
|
+
max_subcompactions=1
|
|
23
|
+
bytes_per_sync=0
|
|
24
|
+
delayed_write_rate=16777216
|
|
25
|
+
max_background_compactions=-1
|
|
26
|
+
max_background_jobs=4
|
|
27
|
+
delete_obsolete_files_period_micros=21600000000
|
|
28
|
+
writable_file_max_buffer_size=1048576
|
|
29
|
+
file_checksum_gen_factory=nullptr
|
|
30
|
+
allow_data_in_errors=false
|
|
31
|
+
max_bgerror_resume_count=2147483647
|
|
32
|
+
best_efforts_recovery=false
|
|
33
|
+
write_dbid_to_manifest=false
|
|
34
|
+
atomic_flush=false
|
|
35
|
+
wal_compression=kZSTD
|
|
36
|
+
manual_wal_flush=false
|
|
37
|
+
two_write_queues=false
|
|
38
|
+
avoid_flush_during_recovery=false
|
|
39
|
+
dump_malloc_stats=false
|
|
40
|
+
info_log_level=HEADER_LEVEL
|
|
41
|
+
write_thread_slow_yield_usec=3
|
|
42
|
+
allow_ingest_behind=false
|
|
43
|
+
fail_if_options_file_error=true
|
|
44
|
+
persist_stats_to_disk=false
|
|
45
|
+
WAL_ttl_seconds=0
|
|
46
|
+
bgerror_resume_retry_interval=1000000
|
|
47
|
+
allow_concurrent_memtable_write=true
|
|
48
|
+
paranoid_checks=true
|
|
49
|
+
WAL_size_limit_MB=256
|
|
50
|
+
lowest_used_cache_tier=kNonVolatileBlockTier
|
|
51
|
+
keep_log_file_num=1000
|
|
52
|
+
table_cache_numshardbits=6
|
|
53
|
+
max_file_opening_threads=16
|
|
54
|
+
use_fsync=false
|
|
55
|
+
unordered_write=true
|
|
56
|
+
random_access_max_buffer_size=1048576
|
|
57
|
+
log_readahead_size=0
|
|
58
|
+
enable_pipelined_write=false
|
|
59
|
+
wal_recovery_mode=kPointInTimeRecovery
|
|
60
|
+
db_write_buffer_size=0
|
|
61
|
+
allow_2pc=false
|
|
62
|
+
skip_checking_sst_file_sizes_on_db_open=false
|
|
63
|
+
skip_stats_update_on_db_open=false
|
|
64
|
+
recycle_log_file_num=0
|
|
65
|
+
db_host_id=__hostname__
|
|
66
|
+
access_hint_on_compaction_start=NORMAL
|
|
67
|
+
verify_sst_unique_id_in_manifest=false
|
|
68
|
+
track_and_verify_wals_in_manifest=false
|
|
69
|
+
error_if_exists=false
|
|
70
|
+
manifest_preallocation_size=4194304
|
|
71
|
+
is_fd_close_on_exec=true
|
|
72
|
+
enable_write_thread_adaptive_yield=true
|
|
73
|
+
enable_thread_tracking=false
|
|
74
|
+
avoid_unnecessary_blocking_io=true
|
|
75
|
+
allow_fallocate=true
|
|
76
|
+
max_log_file_size=0
|
|
77
|
+
advise_random_on_open=true
|
|
78
|
+
create_missing_column_families=true
|
|
79
|
+
max_write_batch_group_size_bytes=1048576
|
|
80
|
+
use_adaptive_mutex=true
|
|
81
|
+
wal_filter=nullptr
|
|
82
|
+
create_if_missing=false
|
|
83
|
+
enforce_single_del_contracts=true
|
|
84
|
+
allow_mmap_writes=false
|
|
85
|
+
log_file_time_to_roll=0
|
|
86
|
+
use_direct_io_for_flush_and_compaction=false
|
|
87
|
+
flush_verify_memtable_count=true
|
|
88
|
+
max_manifest_file_size=1073741824
|
|
89
|
+
write_thread_max_yield_usec=100
|
|
90
|
+
use_direct_reads=false
|
|
91
|
+
allow_mmap_reads=false
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
[CFOptions "default"]
|
|
95
|
+
bottommost_compression=kDisableCompressionOption
|
|
96
|
+
sample_for_compression=0
|
|
97
|
+
blob_garbage_collection_age_cutoff=0.250000
|
|
98
|
+
prepopulate_blob_cache=kDisable
|
|
99
|
+
blob_compaction_readahead_size=0
|
|
100
|
+
level0_stop_writes_trigger=36
|
|
101
|
+
min_blob_size=0
|
|
102
|
+
compaction_options_universal={allow_trivial_move=false;stop_style=kCompactionStopStyleTotalSize;min_merge_width=2;compression_size_percent=-1;max_size_amplification_percent=200;incremental=false;max_merge_width=4294967295;size_ratio=1;}
|
|
103
|
+
target_file_size_base=16000000
|
|
104
|
+
max_bytes_for_level_base=128000000
|
|
105
|
+
memtable_whole_key_filtering=true
|
|
106
|
+
blob_file_starting_level=0
|
|
107
|
+
soft_pending_compaction_bytes_limit=68719476736
|
|
108
|
+
blob_compression_type=kNoCompression
|
|
109
|
+
max_write_buffer_number=6
|
|
110
|
+
ttl=2592000
|
|
111
|
+
compaction_options_fifo={allow_compaction=false;age_for_warm=0;max_table_files_size=1073741824;}
|
|
112
|
+
check_flush_compaction_key_order=true
|
|
113
|
+
max_successive_merges=0
|
|
114
|
+
inplace_update_num_locks=10000
|
|
115
|
+
enable_blob_garbage_collection=false
|
|
116
|
+
arena_block_size=1048576
|
|
117
|
+
bottommost_temperature=kUnknown
|
|
118
|
+
bottommost_compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=0;max_dict_bytes=0;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
119
|
+
target_file_size_multiplier=1
|
|
120
|
+
max_bytes_for_level_multiplier_additional=1:1:1:1:1:1:1
|
|
121
|
+
blob_garbage_collection_force_threshold=1.000000
|
|
122
|
+
enable_blob_files=false
|
|
123
|
+
level0_slowdown_writes_trigger=20
|
|
124
|
+
compression=kZSTD
|
|
125
|
+
level0_file_num_compaction_trigger=2
|
|
126
|
+
blob_file_size=268435456
|
|
127
|
+
prefix_extractor=nullptr
|
|
128
|
+
max_bytes_for_level_multiplier=10.000000
|
|
129
|
+
write_buffer_size=67108864
|
|
130
|
+
disable_auto_compactions=false
|
|
131
|
+
max_compaction_bytes=400000000
|
|
132
|
+
memtable_huge_page_size=0
|
|
133
|
+
compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=1638400;max_dict_bytes=16384;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
134
|
+
hard_pending_compaction_bytes_limit=274877906944
|
|
135
|
+
periodic_compaction_seconds=0
|
|
136
|
+
paranoid_file_checks=false
|
|
137
|
+
experimental_mempurge_threshold=0.000000
|
|
138
|
+
memtable_prefix_bloom_size_ratio=0.020000
|
|
139
|
+
max_sequential_skip_in_iterations=8
|
|
140
|
+
report_bg_io_stats=false
|
|
141
|
+
sst_partitioner_factory=nullptr
|
|
142
|
+
compaction_pri=kMinOverlappingRatio
|
|
143
|
+
compaction_style=kCompactionStyleLevel
|
|
144
|
+
compaction_filter_factory=nullptr
|
|
145
|
+
memtable_factory=SkipListFactory
|
|
146
|
+
comparator=leveldb.BytewiseComparator
|
|
147
|
+
bloom_locality=0
|
|
148
|
+
min_write_buffer_number_to_merge=2
|
|
149
|
+
max_write_buffer_number_to_maintain=0
|
|
150
|
+
compaction_filter=nullptr
|
|
151
|
+
force_consistency_checks=true
|
|
152
|
+
optimize_filters_for_hits=false
|
|
153
|
+
table_factory=BlockBasedTable
|
|
154
|
+
max_write_buffer_size_to_maintain=0
|
|
155
|
+
memtable_insert_with_hint_prefix_extractor=nullptr
|
|
156
|
+
level_compaction_dynamic_level_bytes=false
|
|
157
|
+
preclude_last_level_data_seconds=0
|
|
158
|
+
inplace_update_support=false
|
|
159
|
+
merge_operator=MaxRevOperator
|
|
160
|
+
num_levels=7
|
|
161
|
+
|
|
162
|
+
[TableOptions/BlockBasedTable "default"]
|
|
163
|
+
metadata_cache_options={unpartitioned_pinning=kFallback;partition_pinning=kFallback;top_level_index_pinning=kFallback;}
|
|
164
|
+
read_amp_bytes_per_bit=0
|
|
165
|
+
verify_compression=false
|
|
166
|
+
format_version=5
|
|
167
|
+
optimize_filters_for_memory=true
|
|
168
|
+
partition_filters=false
|
|
169
|
+
detect_filter_construct_corruption=false
|
|
170
|
+
initial_auto_readahead_size=8192
|
|
171
|
+
max_auto_readahead_size=262144
|
|
172
|
+
enable_index_compression=true
|
|
173
|
+
checksum=kXXH3
|
|
174
|
+
index_block_restart_interval=1
|
|
175
|
+
pin_top_level_index_and_filter=true
|
|
176
|
+
block_align=false
|
|
177
|
+
block_size=4096
|
|
178
|
+
index_type=kBinarySearch
|
|
179
|
+
filter_policy=ribbonfilter:10:1
|
|
180
|
+
metadata_block_size=4096
|
|
181
|
+
no_block_cache=false
|
|
182
|
+
index_shortening=kShortenSeparators
|
|
183
|
+
whole_key_filtering=true
|
|
184
|
+
block_size_deviation=10
|
|
185
|
+
data_block_index_type=kDataBlockBinaryAndHash
|
|
186
|
+
data_block_hash_table_util_ratio=0.750000
|
|
187
|
+
cache_index_and_filter_blocks=true
|
|
188
|
+
prepopulate_block_cache=kDisable
|
|
189
|
+
block_restart_interval=16
|
|
190
|
+
pin_l0_filter_and_index_blocks_in_cache=false
|
|
191
|
+
cache_index_and_filter_blocks_with_high_priority=true
|
|
192
|
+
flush_block_policy_factory=FlushBlockBySizePolicyFactory
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
[CFOptions "meta"]
|
|
196
|
+
bottommost_compression=kDisableCompressionOption
|
|
197
|
+
sample_for_compression=0
|
|
198
|
+
blob_garbage_collection_age_cutoff=0.250000
|
|
199
|
+
prepopulate_blob_cache=kDisable
|
|
200
|
+
blob_compaction_readahead_size=0
|
|
201
|
+
level0_stop_writes_trigger=36
|
|
202
|
+
min_blob_size=0
|
|
203
|
+
compaction_options_universal={allow_trivial_move=false;stop_style=kCompactionStopStyleTotalSize;min_merge_width=2;compression_size_percent=-1;max_size_amplification_percent=200;incremental=false;max_merge_width=4294967295;size_ratio=1;}
|
|
204
|
+
target_file_size_base=33554432
|
|
205
|
+
max_bytes_for_level_base=268435456
|
|
206
|
+
memtable_whole_key_filtering=false
|
|
207
|
+
blob_file_starting_level=0
|
|
208
|
+
soft_pending_compaction_bytes_limit=68719476736
|
|
209
|
+
blob_compression_type=kNoCompression
|
|
210
|
+
max_write_buffer_number=6
|
|
211
|
+
ttl=2592000
|
|
212
|
+
compaction_options_fifo={allow_compaction=false;age_for_warm=0;max_table_files_size=1073741824;}
|
|
213
|
+
check_flush_compaction_key_order=true
|
|
214
|
+
max_successive_merges=0
|
|
215
|
+
inplace_update_num_locks=10000
|
|
216
|
+
enable_blob_garbage_collection=false
|
|
217
|
+
arena_block_size=1048576
|
|
218
|
+
bottommost_temperature=kUnknown
|
|
219
|
+
bottommost_compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=0;max_dict_bytes=0;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
220
|
+
target_file_size_multiplier=1
|
|
221
|
+
max_bytes_for_level_multiplier_additional=1:1:1:1:1:1:1
|
|
222
|
+
blob_garbage_collection_force_threshold=1.000000
|
|
223
|
+
enable_blob_files=false
|
|
224
|
+
level0_slowdown_writes_trigger=20
|
|
225
|
+
compression=kZSTD
|
|
226
|
+
level0_file_num_compaction_trigger=2
|
|
227
|
+
blob_file_size=268435456
|
|
228
|
+
prefix_extractor=nullptr
|
|
229
|
+
max_bytes_for_level_multiplier=10.000000
|
|
230
|
+
write_buffer_size=67108864
|
|
231
|
+
disable_auto_compactions=false
|
|
232
|
+
max_compaction_bytes=838860800
|
|
233
|
+
memtable_huge_page_size=0
|
|
234
|
+
compression_opts={use_zstd_dict_trainer=true;enabled=false;parallel_threads=1;zstd_max_train_bytes=1638400;max_dict_bytes=16384;strategy=0;max_dict_buffer_bytes=0;level=32767;window_bits=-14;}
|
|
235
|
+
hard_pending_compaction_bytes_limit=274877906944
|
|
236
|
+
periodic_compaction_seconds=0
|
|
237
|
+
paranoid_file_checks=false
|
|
238
|
+
experimental_mempurge_threshold=0.000000
|
|
239
|
+
memtable_prefix_bloom_size_ratio=0.000000
|
|
240
|
+
max_sequential_skip_in_iterations=8
|
|
241
|
+
report_bg_io_stats=false
|
|
242
|
+
sst_partitioner_factory=nullptr
|
|
243
|
+
compaction_pri=kMinOverlappingRatio
|
|
244
|
+
compaction_style=kCompactionStyleLevel
|
|
245
|
+
compaction_filter_factory=nullptr
|
|
246
|
+
memtable_factory=SkipListFactory
|
|
247
|
+
comparator=leveldb.BytewiseComparator
|
|
248
|
+
bloom_locality=0
|
|
249
|
+
min_write_buffer_number_to_merge=2
|
|
250
|
+
max_write_buffer_number_to_maintain=0
|
|
251
|
+
compaction_filter=nullptr
|
|
252
|
+
force_consistency_checks=true
|
|
253
|
+
optimize_filters_for_hits=false
|
|
254
|
+
table_factory=BlockBasedTable
|
|
255
|
+
max_write_buffer_size_to_maintain=0
|
|
256
|
+
memtable_insert_with_hint_prefix_extractor=nullptr
|
|
257
|
+
level_compaction_dynamic_level_bytes=false
|
|
258
|
+
preclude_last_level_data_seconds=0
|
|
259
|
+
inplace_update_support=false
|
|
260
|
+
merge_operator=nullptr
|
|
261
|
+
num_levels=7
|
|
262
|
+
|
|
263
|
+
[TableOptions/BlockBasedTable "meta"]
|
|
264
|
+
metadata_cache_options={unpartitioned_pinning=kFallback;partition_pinning=kFallback;top_level_index_pinning=kFallback;}
|
|
265
|
+
read_amp_bytes_per_bit=0
|
|
266
|
+
verify_compression=false
|
|
267
|
+
format_version=5
|
|
268
|
+
optimize_filters_for_memory=true
|
|
269
|
+
partition_filters=false
|
|
270
|
+
detect_filter_construct_corruption=false
|
|
271
|
+
initial_auto_readahead_size=8192
|
|
272
|
+
max_auto_readahead_size=262144
|
|
273
|
+
enable_index_compression=true
|
|
274
|
+
checksum=kXXH3
|
|
275
|
+
index_block_restart_interval=1
|
|
276
|
+
pin_top_level_index_and_filter=true
|
|
277
|
+
block_align=false
|
|
278
|
+
block_size=4096
|
|
279
|
+
index_type=kBinarySearch
|
|
280
|
+
filter_policy=ribbonfilter:10:0
|
|
281
|
+
metadata_block_size=4096
|
|
282
|
+
no_block_cache=false
|
|
283
|
+
index_shortening=kShortenSeparators
|
|
284
|
+
whole_key_filtering=true
|
|
285
|
+
block_size_deviation=10
|
|
286
|
+
data_block_index_type=kDataBlockBinarySearch
|
|
287
|
+
data_block_hash_table_util_ratio=0.750000
|
|
288
|
+
cache_index_and_filter_blocks=true
|
|
289
|
+
prepopulate_block_cache=kDisable
|
|
290
|
+
block_restart_interval=16
|
|
291
|
+
pin_l0_filter_and_index_blocks_in_cache=false
|
|
292
|
+
cache_index_and_filter_blocks_with_high_priority=true
|
|
293
|
+
flush_block_policy_factory=FlushBlockBySizePolicyFactory
|
|
294
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/18_04_03.zip
ADDED
|
Binary file
|
|
@@ -366,7 +366,7 @@ Status WalManager::RetainProbableWalFiles(VectorLogPtr& all_logs,
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
// end could be -ve.
|
|
369
|
-
size_t start_index = static_cast<size_t>(std::max(static_cast<int64_t>(0), end));
|
|
369
|
+
size_t start_index = static_cast<size_t>(std::max(static_cast<int64_t>(0), end - 1));
|
|
370
370
|
// The last wal file is always included
|
|
371
371
|
all_logs.erase(all_logs.begin(), all_logs.begin() + start_index);
|
|
372
372
|
return Status::OK();
|
package/index.js
CHANGED
|
@@ -16,6 +16,7 @@ const kContext = Symbol('context')
|
|
|
16
16
|
const kColumns = Symbol('columns')
|
|
17
17
|
const kLocation = Symbol('location')
|
|
18
18
|
const kPromise = Symbol('promise')
|
|
19
|
+
const kUpdates = Symbol('updates')
|
|
19
20
|
|
|
20
21
|
const EMPTY = {}
|
|
21
22
|
|
|
@@ -342,6 +343,7 @@ class RocksLevel extends AbstractLevel {
|
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
options.signal?.addEventListener('abort', onAbort)
|
|
346
|
+
this.on('closing', onAbort)
|
|
345
347
|
|
|
346
348
|
try {
|
|
347
349
|
let since = options.since
|
|
@@ -379,7 +381,7 @@ class RocksLevel extends AbstractLevel {
|
|
|
379
381
|
|
|
380
382
|
try {
|
|
381
383
|
if (since <= this.sequence) {
|
|
382
|
-
for await (const update of this
|
|
384
|
+
for await (const update of this[kUpdates](options)) {
|
|
383
385
|
if (ac.signal.aborted) {
|
|
384
386
|
throw new AbortError()
|
|
385
387
|
}
|
|
@@ -406,11 +408,12 @@ class RocksLevel extends AbstractLevel {
|
|
|
406
408
|
}
|
|
407
409
|
}
|
|
408
410
|
} finally {
|
|
409
|
-
|
|
411
|
+
this.off('closing', onAbort)
|
|
412
|
+
options.signal?.removeEventListener('abort', onAbort)
|
|
410
413
|
}
|
|
411
414
|
}
|
|
412
415
|
|
|
413
|
-
async *
|
|
416
|
+
async * [kUpdates] (options) {
|
|
414
417
|
class Updates {
|
|
415
418
|
constructor (db, options) {
|
|
416
419
|
this.context = binding.updates_init(db[kContext], options)
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/tmp.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RocksLevel } from './index.js'
|
|
2
|
+
import path from 'path'
|
|
3
|
+
|
|
4
|
+
const options = {
|
|
5
|
+
valueEncoding: 'utf-8',
|
|
6
|
+
parallelism: 4,
|
|
7
|
+
walSizeLimit: 256e6,
|
|
8
|
+
walCompression: true,
|
|
9
|
+
unorderedWrite: true,
|
|
10
|
+
createIfMissing: false,
|
|
11
|
+
columns: {
|
|
12
|
+
default: {
|
|
13
|
+
compaction: 'level',
|
|
14
|
+
optimize: 'point-lookup',
|
|
15
|
+
memtableMemoryBudget: 128e6,
|
|
16
|
+
cacheSize: 32e6,
|
|
17
|
+
mergeOperator: 'maxRev',
|
|
18
|
+
},
|
|
19
|
+
meta: {},
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const db = new RocksLevel('./18_04_03', options)
|
|
24
|
+
|
|
25
|
+
await db.open()
|
|
26
|
+
|
|
27
|
+
const since = 590
|
|
28
|
+
for await (const update of db.updates({ since })) {
|
|
29
|
+
console.log(1, since, update.sequence)
|
|
30
|
+
for await (const update of db.updates({ since })) {
|
|
31
|
+
console.log(2, since, update.sequence)
|
|
32
|
+
}
|
|
33
|
+
break
|
|
34
|
+
}
|