@nxtedition/rocksdb 7.1.25 → 7.1.27
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/binding.cc +15 -7
- package/deps/rocksdb/rocksdb/cache/clock_cache.cc +7 -4
- package/deps/rocksdb/rocksdb/db/db_impl/db_impl.cc +18 -2
- package/deps/rocksdb/rocksdb/db/db_impl/db_impl.h +5 -1
- package/deps/rocksdb/rocksdb/db/db_iter.cc +2 -1
- package/deps/rocksdb/rocksdb/db/db_test_util.cc +4 -2
- package/deps/rocksdb/rocksdb/db/db_test_util.h +1 -1
- package/deps/rocksdb/rocksdb/db/version_set.cc +1 -1
- package/deps/rocksdb/rocksdb/include/rocksdb/block_cache_trace_writer.h +149 -0
- package/deps/rocksdb/rocksdb/include/rocksdb/db.h +8 -1
- package/deps/rocksdb/rocksdb/include/rocksdb/table.h +1 -1
- package/deps/rocksdb/rocksdb/{table → include/rocksdb}/table_reader_caller.h +0 -0
- package/deps/rocksdb/rocksdb/include/rocksdb/utilities/stackable_db.h +7 -1
- package/deps/rocksdb/rocksdb/table/table_reader.h +1 -1
- package/deps/rocksdb/rocksdb/table/table_test.cc +29 -22
- package/deps/rocksdb/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.cc +1 -1
- package/deps/rocksdb/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.h +1 -1
- package/deps/rocksdb/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc +25 -16
- package/deps/rocksdb/rocksdb/trace_replay/block_cache_tracer.cc +28 -21
- package/deps/rocksdb/rocksdb/trace_replay/block_cache_tracer.h +16 -72
- package/deps/rocksdb/rocksdb/trace_replay/block_cache_tracer_test.cc +74 -38
- package/deps/rocksdb/rocksdb/util/user_comparator_wrapper.h +11 -31
- package/deps/rocksdb/rocksdb/utilities/simulator_cache/cache_simulator.cc +2 -2
- package/deps/rocksdb/rocksdb/utilities/simulator_cache/cache_simulator_test.cc +13 -13
- package/deps/rocksdb/rocksdb.gyp +1 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
|
@@ -43,11 +43,11 @@ class CacheSimulatorTest : public testing::Test {
|
|
|
43
43
|
record.level = 6;
|
|
44
44
|
record.sst_fd_number = 0;
|
|
45
45
|
record.get_id = getid;
|
|
46
|
-
record.is_cache_hit =
|
|
47
|
-
record.no_insert =
|
|
46
|
+
record.is_cache_hit = false;
|
|
47
|
+
record.no_insert = false;
|
|
48
48
|
record.referenced_key =
|
|
49
49
|
kRefKeyPrefix + std::to_string(kGetId) + kRefKeySequenceNumber;
|
|
50
|
-
record.referenced_key_exist_in_block =
|
|
50
|
+
record.referenced_key_exist_in_block = true;
|
|
51
51
|
record.referenced_data_size = 100;
|
|
52
52
|
record.num_keys_in_block = 300;
|
|
53
53
|
return record;
|
|
@@ -64,8 +64,8 @@ class CacheSimulatorTest : public testing::Test {
|
|
|
64
64
|
record.caller = TableReaderCaller::kCompaction;
|
|
65
65
|
record.level = 6;
|
|
66
66
|
record.sst_fd_number = kCompactionBlockId;
|
|
67
|
-
record.is_cache_hit =
|
|
68
|
-
record.no_insert =
|
|
67
|
+
record.is_cache_hit = false;
|
|
68
|
+
record.no_insert = true;
|
|
69
69
|
return record;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -200,17 +200,17 @@ TEST_F(CacheSimulatorTest, GhostPrioritizedCacheSimulator) {
|
|
|
200
200
|
TEST_F(CacheSimulatorTest, HybridRowBlockCacheSimulator) {
|
|
201
201
|
uint64_t block_id = 100;
|
|
202
202
|
BlockCacheTraceRecord first_get = GenerateGetRecord(kGetId);
|
|
203
|
-
first_get.get_from_user_specified_snapshot =
|
|
203
|
+
first_get.get_from_user_specified_snapshot = true;
|
|
204
204
|
BlockCacheTraceRecord second_get = GenerateGetRecord(kGetId + 1);
|
|
205
205
|
second_get.referenced_data_size = 0;
|
|
206
|
-
second_get.referenced_key_exist_in_block =
|
|
207
|
-
second_get.get_from_user_specified_snapshot =
|
|
206
|
+
second_get.referenced_key_exist_in_block = false;
|
|
207
|
+
second_get.get_from_user_specified_snapshot = true;
|
|
208
208
|
BlockCacheTraceRecord third_get = GenerateGetRecord(kGetId + 2);
|
|
209
209
|
third_get.referenced_data_size = 0;
|
|
210
|
-
third_get.referenced_key_exist_in_block =
|
|
210
|
+
third_get.referenced_key_exist_in_block = false;
|
|
211
211
|
third_get.referenced_key = kRefKeyPrefix + "third_get";
|
|
212
212
|
// We didn't find the referenced key in the third get.
|
|
213
|
-
third_get.referenced_key_exist_in_block =
|
|
213
|
+
third_get.referenced_key_exist_in_block = false;
|
|
214
214
|
third_get.referenced_data_size = 0;
|
|
215
215
|
std::shared_ptr<Cache> sim_cache =
|
|
216
216
|
NewLRUCache(/*capacity=*/kCacheSize, /*num_shard_bits=*/1,
|
|
@@ -308,12 +308,12 @@ TEST_F(CacheSimulatorTest, HybridRowBlockCacheSimulatorGetTest) {
|
|
|
308
308
|
get.access_timestamp = 0;
|
|
309
309
|
get.block_key = "1";
|
|
310
310
|
get.get_id = 1;
|
|
311
|
-
get.get_from_user_specified_snapshot =
|
|
311
|
+
get.get_from_user_specified_snapshot = false;
|
|
312
312
|
get.referenced_key =
|
|
313
313
|
kRefKeyPrefix + std::to_string(1) + kRefKeySequenceNumber;
|
|
314
|
-
get.no_insert =
|
|
314
|
+
get.no_insert = false;
|
|
315
315
|
get.sst_fd_number = 0;
|
|
316
|
-
get.get_from_user_specified_snapshot =
|
|
316
|
+
get.get_from_user_specified_snapshot = false;
|
|
317
317
|
|
|
318
318
|
LRUCacheOptions co;
|
|
319
319
|
co.capacity = 16;
|
package/deps/rocksdb/rocksdb.gyp
CHANGED
|
@@ -311,6 +311,7 @@
|
|
|
311
311
|
"rocksdb/options/options.cc",
|
|
312
312
|
"rocksdb/options/options_helper.cc",
|
|
313
313
|
"rocksdb/options/options_parser.cc",
|
|
314
|
+
"rocksdb/port/mmap.cc",
|
|
314
315
|
"rocksdb/port/stack_trace.cc",
|
|
315
316
|
"rocksdb/table/adaptive/adaptive_table_factory.cc",
|
|
316
317
|
"rocksdb/table/block_based/binary_search_index_reader.cc",
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|