rocksdb-native 0.1.0 → 0.1.1
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/CMakeLists.txt +26 -3
- package/binding.js +1 -1
- package/index.js +7 -5
- package/package.json +3 -4
- package/prebuilds/darwin-arm64/rocksdb-native.node +0 -0
- package/prebuilds/darwin-x64/rocksdb-native.node +0 -0
- package/prebuilds/linux-arm64/rocksdb-native.node +0 -0
- package/prebuilds/linux-x64/rocksdb-native.bare +0 -0
- package/prebuilds/linux-x64/rocksdb-native.node +0 -0
- package/prebuilds/win32-x64/rocksdb-native.bare +0 -0
- package/prebuilds/win32-x64/rocksdb-native.node +0 -0
- package/binding.gyp +0 -30
- package/vendor/librocksdb/librocksdb.gyp +0 -54
- package/vendor/librocksdb/vendor/rocksdb.cc +0 -84
- package/vendor/librocksdb/vendor/rocksdb.gyp +0 -440
package/CMakeLists.txt
CHANGED
|
@@ -3,19 +3,42 @@ cmake_minimum_required(VERSION 3.25)
|
|
|
3
3
|
project(rocksdb_native C CXX)
|
|
4
4
|
|
|
5
5
|
include(bare)
|
|
6
|
+
include(napi)
|
|
6
7
|
|
|
7
8
|
add_subdirectory(vendor/librocksdb EXCLUDE_FROM_ALL)
|
|
8
9
|
|
|
9
|
-
add_bare_module(
|
|
10
|
+
add_bare_module(rocksdb_native_bare)
|
|
10
11
|
|
|
11
12
|
target_sources(
|
|
12
|
-
${
|
|
13
|
+
${rocksdb_native_bare}
|
|
13
14
|
PRIVATE
|
|
14
15
|
binding.c
|
|
15
16
|
)
|
|
16
17
|
|
|
17
18
|
target_link_libraries(
|
|
18
|
-
${
|
|
19
|
+
${rocksdb_native_bare}
|
|
20
|
+
PUBLIC
|
|
21
|
+
rocksdb_static
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
add_napi_module(rocksdb_native_node)
|
|
25
|
+
|
|
26
|
+
bare_include_directories(compat NAPI)
|
|
27
|
+
|
|
28
|
+
target_include_directories(
|
|
29
|
+
${rocksdb_native_node}
|
|
30
|
+
PRIVATE
|
|
31
|
+
${compat}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
target_sources(
|
|
35
|
+
${rocksdb_native_node}
|
|
36
|
+
PRIVATE
|
|
37
|
+
binding.c
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
target_link_libraries(
|
|
41
|
+
${rocksdb_native_node}
|
|
19
42
|
PUBLIC
|
|
20
43
|
rocksdb_static
|
|
21
44
|
)
|
package/binding.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('
|
|
1
|
+
module.exports = require('load-addon')(__dirname)
|
package/index.js
CHANGED
|
@@ -112,8 +112,10 @@ const RocksDB = module.exports = class RocksDB extends ReadyResource {
|
|
|
112
112
|
static _instances = new Set()
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
Bare
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
115
|
+
if (typeof Bare !== 'undefined') {
|
|
116
|
+
Bare.on('exit', async () => {
|
|
117
|
+
for (const db of RocksDB._instances) {
|
|
118
|
+
await db.close()
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rocksdb-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "JavaScript bindings for RocksDB",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"index.js",
|
|
8
8
|
"binding.c",
|
|
9
|
-
"binding.gyp",
|
|
10
9
|
"binding.js",
|
|
11
10
|
"CMakeLists.txt",
|
|
12
11
|
"lib",
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
],
|
|
16
15
|
"addon": true,
|
|
17
16
|
"scripts": {
|
|
18
|
-
"test": "standard && bare test.js"
|
|
17
|
+
"test": "standard && bare test.js && node test.js"
|
|
19
18
|
},
|
|
20
19
|
"repository": {
|
|
21
20
|
"type": "git",
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
"homepage": "https://github.com/holepunchto/rocksdb-native",
|
|
30
29
|
"dependencies": {
|
|
31
30
|
"b4a": "^1.6.6",
|
|
32
|
-
"
|
|
31
|
+
"load-addon": "^1.0.0",
|
|
33
32
|
"ready-resource": "^1.0.0",
|
|
34
33
|
"streamx": "^2.16.1"
|
|
35
34
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/binding.gyp
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
'targets': [{
|
|
3
|
-
'target_name': 'rocksdb',
|
|
4
|
-
'include_dirs': [
|
|
5
|
-
'<!(bare-dev paths compat/napi)',
|
|
6
|
-
],
|
|
7
|
-
'dependencies': [
|
|
8
|
-
'./vendor/librocksdb/librocksdb.gyp:librocksdb',
|
|
9
|
-
],
|
|
10
|
-
'sources': [
|
|
11
|
-
'./binding.c',
|
|
12
|
-
],
|
|
13
|
-
'configurations': {
|
|
14
|
-
'Debug': {
|
|
15
|
-
'defines': ['DEBUG'],
|
|
16
|
-
},
|
|
17
|
-
'Release': {
|
|
18
|
-
'defines': ['NDEBUG'],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
'conditions': [
|
|
22
|
-
['OS=="win"', {
|
|
23
|
-
'libraries': [
|
|
24
|
-
'shlwapi.lib',
|
|
25
|
-
'rpcrt4.lib',
|
|
26
|
-
],
|
|
27
|
-
}],
|
|
28
|
-
],
|
|
29
|
-
}],
|
|
30
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
'targets': [{
|
|
3
|
-
'target_name': 'librocksdb',
|
|
4
|
-
'type': 'static_library',
|
|
5
|
-
'include_dirs': [
|
|
6
|
-
'./include',
|
|
7
|
-
],
|
|
8
|
-
'dependencies': [
|
|
9
|
-
'./vendor/rocksdb.gyp:rocksdb',
|
|
10
|
-
],
|
|
11
|
-
'sources': [
|
|
12
|
-
'./src/rocksdb.cc',
|
|
13
|
-
],
|
|
14
|
-
'direct_dependent_settings': {
|
|
15
|
-
'include_dirs': [
|
|
16
|
-
'./include',
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
'export_dependent_settings': [
|
|
20
|
-
'./vendor/rocksdb.gyp:rocksdb',
|
|
21
|
-
],
|
|
22
|
-
'configurations': {
|
|
23
|
-
'Debug': {
|
|
24
|
-
'defines': ['DEBUG'],
|
|
25
|
-
},
|
|
26
|
-
'Release': {
|
|
27
|
-
'defines': ['NDEBUG'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
'conditions': [
|
|
31
|
-
['OS=="mac"', {
|
|
32
|
-
'xcode_settings': {
|
|
33
|
-
'OTHER_CPLUSPLUSFLAGS': [
|
|
34
|
-
'-std=c++20',
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
}],
|
|
38
|
-
['OS=="linux"', {
|
|
39
|
-
'cflags_cc': [
|
|
40
|
-
'-std=c++20',
|
|
41
|
-
],
|
|
42
|
-
}],
|
|
43
|
-
['OS=="win"', {
|
|
44
|
-
'msvs_settings': {
|
|
45
|
-
'VCCLCompilerTool': {
|
|
46
|
-
'AdditionalOptions': [
|
|
47
|
-
'/std:c++20',
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
}],
|
|
52
|
-
],
|
|
53
|
-
}]
|
|
54
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
#include <memory>
|
|
4
|
-
|
|
5
|
-
#include "rocksdb/utilities/object_registry.h"
|
|
6
|
-
#include "rocksdb/version.h"
|
|
7
|
-
#include "util/string_util.h"
|
|
8
|
-
|
|
9
|
-
// The build script may replace these values with real values based
|
|
10
|
-
// on whether or not GIT is available and the platform settings
|
|
11
|
-
static const std::string rocksdb_build_git_sha = "rocksdb_build_git_sha:6f7cabeac80a3a6150be2c8a8369fcecb107bf43";
|
|
12
|
-
static const std::string rocksdb_build_git_tag = "rocksdb_build_git_tag:v9.1.1";
|
|
13
|
-
#define HAS_GIT_CHANGES 0
|
|
14
|
-
#if HAS_GIT_CHANGES == 0
|
|
15
|
-
// If HAS_GIT_CHANGES is 0, the GIT date is used.
|
|
16
|
-
// Use the time the branch/tag was last modified
|
|
17
|
-
static const std::string rocksdb_build_date = "rocksdb_build_date:2024-04-22 11:35:44";
|
|
18
|
-
#else
|
|
19
|
-
// If HAS_GIT_CHANGES is > 0, the branch/tag has modifications.
|
|
20
|
-
// Use the time the build was created.
|
|
21
|
-
static const std::string rocksdb_build_date = "rocksdb_build_date:2024-04-26 11:03:47";
|
|
22
|
-
#endif
|
|
23
|
-
|
|
24
|
-
extern "C" {
|
|
25
|
-
|
|
26
|
-
} // extern "C"
|
|
27
|
-
|
|
28
|
-
std::unordered_map<std::string, ROCKSDB_NAMESPACE::RegistrarFunc> ROCKSDB_NAMESPACE::ObjectRegistry::builtins_ = {
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
namespace ROCKSDB_NAMESPACE {
|
|
33
|
-
static void
|
|
34
|
-
AddProperty (std::unordered_map<std::string, std::string> *props, const std::string &name) {
|
|
35
|
-
size_t colon = name.find(":");
|
|
36
|
-
if (colon != std::string::npos && colon > 0 && colon < name.length() - 1) {
|
|
37
|
-
// If we found a "@:", then this property was a build-time substitution that failed. Skip it
|
|
38
|
-
size_t at = name.find("@", colon);
|
|
39
|
-
if (at != colon + 1) {
|
|
40
|
-
// Everything before the colon is the name, after is the value
|
|
41
|
-
(*props)[name.substr(0, colon)] = name.substr(colon + 1);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static std::unordered_map<std::string, std::string> *
|
|
47
|
-
LoadPropertiesSet () {
|
|
48
|
-
auto *properties = new std::unordered_map<std::string, std::string>();
|
|
49
|
-
AddProperty(properties, rocksdb_build_git_sha);
|
|
50
|
-
AddProperty(properties, rocksdb_build_git_tag);
|
|
51
|
-
AddProperty(properties, rocksdb_build_date);
|
|
52
|
-
return properties;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const std::unordered_map<std::string, std::string> &
|
|
56
|
-
GetRocksBuildProperties () {
|
|
57
|
-
static std::unique_ptr<std::unordered_map<std::string, std::string>> props(LoadPropertiesSet());
|
|
58
|
-
return *props;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
std::string
|
|
62
|
-
GetRocksVersionAsString (bool with_patch) {
|
|
63
|
-
std::string version = std::to_string(ROCKSDB_MAJOR) + "." + std::to_string(ROCKSDB_MINOR);
|
|
64
|
-
if (with_patch) {
|
|
65
|
-
return version + "." + std::to_string(ROCKSDB_PATCH);
|
|
66
|
-
} else {
|
|
67
|
-
return version;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
std::string
|
|
72
|
-
GetRocksBuildInfoAsString (const std::string &program, bool verbose) {
|
|
73
|
-
std::string info = program + " (RocksDB) " + GetRocksVersionAsString(true);
|
|
74
|
-
if (verbose) {
|
|
75
|
-
for (const auto &it : GetRocksBuildProperties()) {
|
|
76
|
-
info.append("\n ");
|
|
77
|
-
info.append(it.first);
|
|
78
|
-
info.append(": ");
|
|
79
|
-
info.append(it.second);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return info;
|
|
83
|
-
}
|
|
84
|
-
} // namespace ROCKSDB_NAMESPACE
|
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
'targets': [{
|
|
3
|
-
'target_name': 'rocksdb',
|
|
4
|
-
'type': 'static_library',
|
|
5
|
-
'include_dirs': [
|
|
6
|
-
'./rocksdb',
|
|
7
|
-
'./rocksdb/include',
|
|
8
|
-
],
|
|
9
|
-
'sources': [
|
|
10
|
-
'./rocksdb.cc',
|
|
11
|
-
'./rocksdb/cache/cache.cc',
|
|
12
|
-
'./rocksdb/cache/cache_entry_roles.cc',
|
|
13
|
-
'./rocksdb/cache/cache_helpers.cc',
|
|
14
|
-
'./rocksdb/cache/cache_key.cc',
|
|
15
|
-
'./rocksdb/cache/cache_reservation_manager.cc',
|
|
16
|
-
'./rocksdb/cache/charged_cache.cc',
|
|
17
|
-
'./rocksdb/cache/clock_cache.cc',
|
|
18
|
-
'./rocksdb/cache/compressed_secondary_cache.cc',
|
|
19
|
-
'./rocksdb/cache/lru_cache.cc',
|
|
20
|
-
'./rocksdb/cache/secondary_cache.cc',
|
|
21
|
-
'./rocksdb/cache/secondary_cache_adapter.cc',
|
|
22
|
-
'./rocksdb/cache/sharded_cache.cc',
|
|
23
|
-
'./rocksdb/cache/tiered_secondary_cache.cc',
|
|
24
|
-
'./rocksdb/db/arena_wrapped_db_iter.cc',
|
|
25
|
-
'./rocksdb/db/blob/blob_contents.cc',
|
|
26
|
-
'./rocksdb/db/blob/blob_fetcher.cc',
|
|
27
|
-
'./rocksdb/db/blob/blob_file_addition.cc',
|
|
28
|
-
'./rocksdb/db/blob/blob_file_builder.cc',
|
|
29
|
-
'./rocksdb/db/blob/blob_file_cache.cc',
|
|
30
|
-
'./rocksdb/db/blob/blob_file_garbage.cc',
|
|
31
|
-
'./rocksdb/db/blob/blob_file_meta.cc',
|
|
32
|
-
'./rocksdb/db/blob/blob_file_reader.cc',
|
|
33
|
-
'./rocksdb/db/blob/blob_garbage_meter.cc',
|
|
34
|
-
'./rocksdb/db/blob/blob_log_format.cc',
|
|
35
|
-
'./rocksdb/db/blob/blob_log_sequential_reader.cc',
|
|
36
|
-
'./rocksdb/db/blob/blob_log_writer.cc',
|
|
37
|
-
'./rocksdb/db/blob/blob_source.cc',
|
|
38
|
-
'./rocksdb/db/blob/prefetch_buffer_collection.cc',
|
|
39
|
-
'./rocksdb/db/builder.cc',
|
|
40
|
-
'./rocksdb/db/c.cc',
|
|
41
|
-
'./rocksdb/db/column_family.cc',
|
|
42
|
-
'./rocksdb/db/compaction/compaction.cc',
|
|
43
|
-
'./rocksdb/db/compaction/compaction_iterator.cc',
|
|
44
|
-
'./rocksdb/db/compaction/compaction_job.cc',
|
|
45
|
-
'./rocksdb/db/compaction/compaction_outputs.cc',
|
|
46
|
-
'./rocksdb/db/compaction/compaction_picker.cc',
|
|
47
|
-
'./rocksdb/db/compaction/compaction_picker_fifo.cc',
|
|
48
|
-
'./rocksdb/db/compaction/compaction_picker_level.cc',
|
|
49
|
-
'./rocksdb/db/compaction/compaction_picker_universal.cc',
|
|
50
|
-
'./rocksdb/db/compaction/compaction_service_job.cc',
|
|
51
|
-
'./rocksdb/db/compaction/compaction_state.cc',
|
|
52
|
-
'./rocksdb/db/compaction/sst_partitioner.cc',
|
|
53
|
-
'./rocksdb/db/compaction/subcompaction_state.cc',
|
|
54
|
-
'./rocksdb/db/convenience.cc',
|
|
55
|
-
'./rocksdb/db/db_filesnapshot.cc',
|
|
56
|
-
'./rocksdb/db/db_impl/compacted_db_impl.cc',
|
|
57
|
-
'./rocksdb/db/db_impl/db_impl.cc',
|
|
58
|
-
'./rocksdb/db/db_impl/db_impl_compaction_flush.cc',
|
|
59
|
-
'./rocksdb/db/db_impl/db_impl_debug.cc',
|
|
60
|
-
'./rocksdb/db/db_impl/db_impl_experimental.cc',
|
|
61
|
-
'./rocksdb/db/db_impl/db_impl_files.cc',
|
|
62
|
-
'./rocksdb/db/db_impl/db_impl_open.cc',
|
|
63
|
-
'./rocksdb/db/db_impl/db_impl_readonly.cc',
|
|
64
|
-
'./rocksdb/db/db_impl/db_impl_secondary.cc',
|
|
65
|
-
'./rocksdb/db/db_impl/db_impl_write.cc',
|
|
66
|
-
'./rocksdb/db/db_info_dumper.cc',
|
|
67
|
-
'./rocksdb/db/db_iter.cc',
|
|
68
|
-
'./rocksdb/db/dbformat.cc',
|
|
69
|
-
'./rocksdb/db/error_handler.cc',
|
|
70
|
-
'./rocksdb/db/event_helpers.cc',
|
|
71
|
-
'./rocksdb/db/experimental.cc',
|
|
72
|
-
'./rocksdb/db/external_sst_file_ingestion_job.cc',
|
|
73
|
-
'./rocksdb/db/file_indexer.cc',
|
|
74
|
-
'./rocksdb/db/flush_job.cc',
|
|
75
|
-
'./rocksdb/db/flush_scheduler.cc',
|
|
76
|
-
'./rocksdb/db/forward_iterator.cc',
|
|
77
|
-
'./rocksdb/db/import_column_family_job.cc',
|
|
78
|
-
'./rocksdb/db/internal_stats.cc',
|
|
79
|
-
'./rocksdb/db/log_reader.cc',
|
|
80
|
-
'./rocksdb/db/log_writer.cc',
|
|
81
|
-
'./rocksdb/db/logs_with_prep_tracker.cc',
|
|
82
|
-
'./rocksdb/db/malloc_stats.cc',
|
|
83
|
-
'./rocksdb/db/memtable.cc',
|
|
84
|
-
'./rocksdb/db/memtable_list.cc',
|
|
85
|
-
'./rocksdb/db/merge_helper.cc',
|
|
86
|
-
'./rocksdb/db/merge_operator.cc',
|
|
87
|
-
'./rocksdb/db/multi_cf_iterator.cc',
|
|
88
|
-
'./rocksdb/db/output_validator.cc',
|
|
89
|
-
'./rocksdb/db/periodic_task_scheduler.cc',
|
|
90
|
-
'./rocksdb/db/range_del_aggregator.cc',
|
|
91
|
-
'./rocksdb/db/range_tombstone_fragmenter.cc',
|
|
92
|
-
'./rocksdb/db/repair.cc',
|
|
93
|
-
'./rocksdb/db/seqno_to_time_mapping.cc',
|
|
94
|
-
'./rocksdb/db/snapshot_impl.cc',
|
|
95
|
-
'./rocksdb/db/table_cache.cc',
|
|
96
|
-
'./rocksdb/db/table_properties_collector.cc',
|
|
97
|
-
'./rocksdb/db/transaction_log_impl.cc',
|
|
98
|
-
'./rocksdb/db/trim_history_scheduler.cc',
|
|
99
|
-
'./rocksdb/db/version_builder.cc',
|
|
100
|
-
'./rocksdb/db/version_edit.cc',
|
|
101
|
-
'./rocksdb/db/version_edit_handler.cc',
|
|
102
|
-
'./rocksdb/db/version_set.cc',
|
|
103
|
-
'./rocksdb/db/wal_edit.cc',
|
|
104
|
-
'./rocksdb/db/wal_manager.cc',
|
|
105
|
-
'./rocksdb/db/wide/wide_column_serialization.cc',
|
|
106
|
-
'./rocksdb/db/wide/wide_columns.cc',
|
|
107
|
-
'./rocksdb/db/wide/wide_columns_helper.cc',
|
|
108
|
-
'./rocksdb/db/write_batch.cc',
|
|
109
|
-
'./rocksdb/db/write_batch_base.cc',
|
|
110
|
-
'./rocksdb/db/write_controller.cc',
|
|
111
|
-
'./rocksdb/db/write_stall_stats.cc',
|
|
112
|
-
'./rocksdb/db/write_thread.cc',
|
|
113
|
-
'./rocksdb/env/composite_env.cc',
|
|
114
|
-
'./rocksdb/env/env.cc',
|
|
115
|
-
'./rocksdb/env/env_chroot.cc',
|
|
116
|
-
'./rocksdb/env/env_encryption.cc',
|
|
117
|
-
'./rocksdb/env/file_system.cc',
|
|
118
|
-
'./rocksdb/env/file_system_tracer.cc',
|
|
119
|
-
'./rocksdb/env/fs_remap.cc',
|
|
120
|
-
'./rocksdb/env/mock_env.cc',
|
|
121
|
-
'./rocksdb/env/unique_id_gen.cc',
|
|
122
|
-
'./rocksdb/file/delete_scheduler.cc',
|
|
123
|
-
'./rocksdb/file/file_prefetch_buffer.cc',
|
|
124
|
-
'./rocksdb/file/file_util.cc',
|
|
125
|
-
'./rocksdb/file/filename.cc',
|
|
126
|
-
'./rocksdb/file/line_file_reader.cc',
|
|
127
|
-
'./rocksdb/file/random_access_file_reader.cc',
|
|
128
|
-
'./rocksdb/file/read_write_util.cc',
|
|
129
|
-
'./rocksdb/file/readahead_raf.cc',
|
|
130
|
-
'./rocksdb/file/sequence_file_reader.cc',
|
|
131
|
-
'./rocksdb/file/sst_file_manager_impl.cc',
|
|
132
|
-
'./rocksdb/file/writable_file_writer.cc',
|
|
133
|
-
'./rocksdb/logging/auto_roll_logger.cc',
|
|
134
|
-
'./rocksdb/logging/event_logger.cc',
|
|
135
|
-
'./rocksdb/logging/log_buffer.cc',
|
|
136
|
-
'./rocksdb/memory/arena.cc',
|
|
137
|
-
'./rocksdb/memory/concurrent_arena.cc',
|
|
138
|
-
'./rocksdb/memory/jemalloc_nodump_allocator.cc',
|
|
139
|
-
'./rocksdb/memory/memkind_kmem_allocator.cc',
|
|
140
|
-
'./rocksdb/memory/memory_allocator.cc',
|
|
141
|
-
'./rocksdb/memtable/alloc_tracker.cc',
|
|
142
|
-
'./rocksdb/memtable/hash_linklist_rep.cc',
|
|
143
|
-
'./rocksdb/memtable/hash_skiplist_rep.cc',
|
|
144
|
-
'./rocksdb/memtable/skiplistrep.cc',
|
|
145
|
-
'./rocksdb/memtable/vectorrep.cc',
|
|
146
|
-
'./rocksdb/memtable/write_buffer_manager.cc',
|
|
147
|
-
'./rocksdb/monitoring/histogram.cc',
|
|
148
|
-
'./rocksdb/monitoring/histogram_windowing.cc',
|
|
149
|
-
'./rocksdb/monitoring/in_memory_stats_history.cc',
|
|
150
|
-
'./rocksdb/monitoring/instrumented_mutex.cc',
|
|
151
|
-
'./rocksdb/monitoring/iostats_context.cc',
|
|
152
|
-
'./rocksdb/monitoring/perf_context.cc',
|
|
153
|
-
'./rocksdb/monitoring/perf_level.cc',
|
|
154
|
-
'./rocksdb/monitoring/persistent_stats_history.cc',
|
|
155
|
-
'./rocksdb/monitoring/statistics.cc',
|
|
156
|
-
'./rocksdb/monitoring/thread_status_impl.cc',
|
|
157
|
-
'./rocksdb/monitoring/thread_status_updater.cc',
|
|
158
|
-
'./rocksdb/monitoring/thread_status_util.cc',
|
|
159
|
-
'./rocksdb/monitoring/thread_status_util_debug.cc',
|
|
160
|
-
'./rocksdb/options/cf_options.cc',
|
|
161
|
-
'./rocksdb/options/configurable.cc',
|
|
162
|
-
'./rocksdb/options/customizable.cc',
|
|
163
|
-
'./rocksdb/options/db_options.cc',
|
|
164
|
-
'./rocksdb/options/offpeak_time_info.cc',
|
|
165
|
-
'./rocksdb/options/options.cc',
|
|
166
|
-
'./rocksdb/options/options_helper.cc',
|
|
167
|
-
'./rocksdb/options/options_parser.cc',
|
|
168
|
-
'./rocksdb/port/mmap.cc',
|
|
169
|
-
'./rocksdb/port/stack_trace.cc',
|
|
170
|
-
'./rocksdb/table/adaptive/adaptive_table_factory.cc',
|
|
171
|
-
'./rocksdb/table/block_based/binary_search_index_reader.cc',
|
|
172
|
-
'./rocksdb/table/block_based/block.cc',
|
|
173
|
-
'./rocksdb/table/block_based/block_based_table_builder.cc',
|
|
174
|
-
'./rocksdb/table/block_based/block_based_table_factory.cc',
|
|
175
|
-
'./rocksdb/table/block_based/block_based_table_iterator.cc',
|
|
176
|
-
'./rocksdb/table/block_based/block_based_table_reader.cc',
|
|
177
|
-
'./rocksdb/table/block_based/block_builder.cc',
|
|
178
|
-
'./rocksdb/table/block_based/block_cache.cc',
|
|
179
|
-
'./rocksdb/table/block_based/block_prefetcher.cc',
|
|
180
|
-
'./rocksdb/table/block_based/block_prefix_index.cc',
|
|
181
|
-
'./rocksdb/table/block_based/data_block_footer.cc',
|
|
182
|
-
'./rocksdb/table/block_based/data_block_hash_index.cc',
|
|
183
|
-
'./rocksdb/table/block_based/filter_block_reader_common.cc',
|
|
184
|
-
'./rocksdb/table/block_based/filter_policy.cc',
|
|
185
|
-
'./rocksdb/table/block_based/flush_block_policy.cc',
|
|
186
|
-
'./rocksdb/table/block_based/full_filter_block.cc',
|
|
187
|
-
'./rocksdb/table/block_based/hash_index_reader.cc',
|
|
188
|
-
'./rocksdb/table/block_based/index_builder.cc',
|
|
189
|
-
'./rocksdb/table/block_based/index_reader_common.cc',
|
|
190
|
-
'./rocksdb/table/block_based/parsed_full_filter_block.cc',
|
|
191
|
-
'./rocksdb/table/block_based/partitioned_filter_block.cc',
|
|
192
|
-
'./rocksdb/table/block_based/partitioned_index_iterator.cc',
|
|
193
|
-
'./rocksdb/table/block_based/partitioned_index_reader.cc',
|
|
194
|
-
'./rocksdb/table/block_based/reader_common.cc',
|
|
195
|
-
'./rocksdb/table/block_based/uncompression_dict_reader.cc',
|
|
196
|
-
'./rocksdb/table/block_fetcher.cc',
|
|
197
|
-
'./rocksdb/table/compaction_merging_iterator.cc',
|
|
198
|
-
'./rocksdb/table/cuckoo/cuckoo_table_builder.cc',
|
|
199
|
-
'./rocksdb/table/cuckoo/cuckoo_table_factory.cc',
|
|
200
|
-
'./rocksdb/table/cuckoo/cuckoo_table_reader.cc',
|
|
201
|
-
'./rocksdb/table/format.cc',
|
|
202
|
-
'./rocksdb/table/get_context.cc',
|
|
203
|
-
'./rocksdb/table/iterator.cc',
|
|
204
|
-
'./rocksdb/table/merging_iterator.cc',
|
|
205
|
-
'./rocksdb/table/meta_blocks.cc',
|
|
206
|
-
'./rocksdb/table/persistent_cache_helper.cc',
|
|
207
|
-
'./rocksdb/table/plain/plain_table_bloom.cc',
|
|
208
|
-
'./rocksdb/table/plain/plain_table_builder.cc',
|
|
209
|
-
'./rocksdb/table/plain/plain_table_factory.cc',
|
|
210
|
-
'./rocksdb/table/plain/plain_table_index.cc',
|
|
211
|
-
'./rocksdb/table/plain/plain_table_key_coding.cc',
|
|
212
|
-
'./rocksdb/table/plain/plain_table_reader.cc',
|
|
213
|
-
'./rocksdb/table/sst_file_dumper.cc',
|
|
214
|
-
'./rocksdb/table/sst_file_reader.cc',
|
|
215
|
-
'./rocksdb/table/sst_file_writer.cc',
|
|
216
|
-
'./rocksdb/table/table_factory.cc',
|
|
217
|
-
'./rocksdb/table/table_properties.cc',
|
|
218
|
-
'./rocksdb/table/two_level_iterator.cc',
|
|
219
|
-
'./rocksdb/table/unique_id.cc',
|
|
220
|
-
'./rocksdb/test_util/sync_point.cc',
|
|
221
|
-
'./rocksdb/test_util/sync_point_impl.cc',
|
|
222
|
-
'./rocksdb/test_util/testutil.cc',
|
|
223
|
-
'./rocksdb/test_util/transaction_test_util.cc',
|
|
224
|
-
'./rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.cc',
|
|
225
|
-
'./rocksdb/tools/dump/db_dump_tool.cc',
|
|
226
|
-
'./rocksdb/tools/io_tracer_parser_tool.cc',
|
|
227
|
-
'./rocksdb/tools/ldb_cmd.cc',
|
|
228
|
-
'./rocksdb/tools/ldb_tool.cc',
|
|
229
|
-
'./rocksdb/tools/sst_dump_tool.cc',
|
|
230
|
-
'./rocksdb/tools/trace_analyzer_tool.cc',
|
|
231
|
-
'./rocksdb/trace_replay/block_cache_tracer.cc',
|
|
232
|
-
'./rocksdb/trace_replay/io_tracer.cc',
|
|
233
|
-
'./rocksdb/trace_replay/trace_record.cc',
|
|
234
|
-
'./rocksdb/trace_replay/trace_record_handler.cc',
|
|
235
|
-
'./rocksdb/trace_replay/trace_record_result.cc',
|
|
236
|
-
'./rocksdb/trace_replay/trace_replay.cc',
|
|
237
|
-
'./rocksdb/util/async_file_reader.cc',
|
|
238
|
-
'./rocksdb/util/cleanable.cc',
|
|
239
|
-
'./rocksdb/util/coding.cc',
|
|
240
|
-
'./rocksdb/util/compaction_job_stats_impl.cc',
|
|
241
|
-
'./rocksdb/util/comparator.cc',
|
|
242
|
-
'./rocksdb/util/compression.cc',
|
|
243
|
-
'./rocksdb/util/compression_context_cache.cc',
|
|
244
|
-
'./rocksdb/util/concurrent_task_limiter_impl.cc',
|
|
245
|
-
'./rocksdb/util/crc32c.cc',
|
|
246
|
-
'./rocksdb/util/crc32c_arm64.cc',
|
|
247
|
-
'./rocksdb/util/data_structure.cc',
|
|
248
|
-
'./rocksdb/util/dynamic_bloom.cc',
|
|
249
|
-
'./rocksdb/util/file_checksum_helper.cc',
|
|
250
|
-
'./rocksdb/util/hash.cc',
|
|
251
|
-
'./rocksdb/util/murmurhash.cc',
|
|
252
|
-
'./rocksdb/util/random.cc',
|
|
253
|
-
'./rocksdb/util/rate_limiter.cc',
|
|
254
|
-
'./rocksdb/util/ribbon_config.cc',
|
|
255
|
-
'./rocksdb/util/slice.cc',
|
|
256
|
-
'./rocksdb/util/status.cc',
|
|
257
|
-
'./rocksdb/util/stderr_logger.cc',
|
|
258
|
-
'./rocksdb/util/string_util.cc',
|
|
259
|
-
'./rocksdb/util/thread_local.cc',
|
|
260
|
-
'./rocksdb/util/threadpool_imp.cc',
|
|
261
|
-
'./rocksdb/util/udt_util.cc',
|
|
262
|
-
'./rocksdb/util/write_batch_util.cc',
|
|
263
|
-
'./rocksdb/util/xxhash.cc',
|
|
264
|
-
'./rocksdb/utilities/agg_merge/agg_merge.cc',
|
|
265
|
-
'./rocksdb/utilities/backup/backup_engine.cc',
|
|
266
|
-
'./rocksdb/utilities/blob_db/blob_compaction_filter.cc',
|
|
267
|
-
'./rocksdb/utilities/blob_db/blob_db.cc',
|
|
268
|
-
'./rocksdb/utilities/blob_db/blob_db_impl.cc',
|
|
269
|
-
'./rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.cc',
|
|
270
|
-
'./rocksdb/utilities/blob_db/blob_dump_tool.cc',
|
|
271
|
-
'./rocksdb/utilities/blob_db/blob_file.cc',
|
|
272
|
-
'./rocksdb/utilities/cache_dump_load.cc',
|
|
273
|
-
'./rocksdb/utilities/cache_dump_load_impl.cc',
|
|
274
|
-
'./rocksdb/utilities/cassandra/cassandra_compaction_filter.cc',
|
|
275
|
-
'./rocksdb/utilities/cassandra/format.cc',
|
|
276
|
-
'./rocksdb/utilities/cassandra/merge_operator.cc',
|
|
277
|
-
'./rocksdb/utilities/checkpoint/checkpoint_impl.cc',
|
|
278
|
-
'./rocksdb/utilities/compaction_filters.cc',
|
|
279
|
-
'./rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc',
|
|
280
|
-
'./rocksdb/utilities/counted_fs.cc',
|
|
281
|
-
'./rocksdb/utilities/debug.cc',
|
|
282
|
-
'./rocksdb/utilities/env_mirror.cc',
|
|
283
|
-
'./rocksdb/utilities/env_timed.cc',
|
|
284
|
-
'./rocksdb/utilities/fault_injection_env.cc',
|
|
285
|
-
'./rocksdb/utilities/fault_injection_fs.cc',
|
|
286
|
-
'./rocksdb/utilities/fault_injection_secondary_cache.cc',
|
|
287
|
-
'./rocksdb/utilities/leveldb_options/leveldb_options.cc',
|
|
288
|
-
'./rocksdb/utilities/memory/memory_util.cc',
|
|
289
|
-
'./rocksdb/utilities/merge_operators.cc',
|
|
290
|
-
'./rocksdb/utilities/merge_operators/bytesxor.cc',
|
|
291
|
-
'./rocksdb/utilities/merge_operators/max.cc',
|
|
292
|
-
'./rocksdb/utilities/merge_operators/put.cc',
|
|
293
|
-
'./rocksdb/utilities/merge_operators/sortlist.cc',
|
|
294
|
-
'./rocksdb/utilities/merge_operators/string_append/stringappend.cc',
|
|
295
|
-
'./rocksdb/utilities/merge_operators/string_append/stringappend2.cc',
|
|
296
|
-
'./rocksdb/utilities/merge_operators/uint64add.cc',
|
|
297
|
-
'./rocksdb/utilities/object_registry.cc',
|
|
298
|
-
'./rocksdb/utilities/option_change_migration/option_change_migration.cc',
|
|
299
|
-
'./rocksdb/utilities/options/options_util.cc',
|
|
300
|
-
'./rocksdb/utilities/persistent_cache/block_cache_tier.cc',
|
|
301
|
-
'./rocksdb/utilities/persistent_cache/block_cache_tier_file.cc',
|
|
302
|
-
'./rocksdb/utilities/persistent_cache/block_cache_tier_metadata.cc',
|
|
303
|
-
'./rocksdb/utilities/persistent_cache/persistent_cache_tier.cc',
|
|
304
|
-
'./rocksdb/utilities/persistent_cache/volatile_tier_impl.cc',
|
|
305
|
-
'./rocksdb/utilities/simulator_cache/cache_simulator.cc',
|
|
306
|
-
'./rocksdb/utilities/simulator_cache/sim_cache.cc',
|
|
307
|
-
'./rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.cc',
|
|
308
|
-
'./rocksdb/utilities/trace/file_trace_reader_writer.cc',
|
|
309
|
-
'./rocksdb/utilities/trace/replayer_impl.cc',
|
|
310
|
-
'./rocksdb/utilities/transactions/lock/lock_manager.cc',
|
|
311
|
-
'./rocksdb/utilities/transactions/lock/point/point_lock_manager.cc',
|
|
312
|
-
'./rocksdb/utilities/transactions/lock/point/point_lock_tracker.cc',
|
|
313
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/concurrent_tree.cc',
|
|
314
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/keyrange.cc',
|
|
315
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.cc',
|
|
316
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/locktree.cc',
|
|
317
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/manager.cc',
|
|
318
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/range_buffer.cc',
|
|
319
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/treenode.cc',
|
|
320
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/txnid_set.cc',
|
|
321
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/locktree/wfg.cc',
|
|
322
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/standalone_port.cc',
|
|
323
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/util/dbt.cc',
|
|
324
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/lib/util/memarena.cc',
|
|
325
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_manager.cc',
|
|
326
|
-
'./rocksdb/utilities/transactions/lock/range/range_tree/range_tree_lock_tracker.cc',
|
|
327
|
-
'./rocksdb/utilities/transactions/optimistic_transaction.cc',
|
|
328
|
-
'./rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc',
|
|
329
|
-
'./rocksdb/utilities/transactions/pessimistic_transaction.cc',
|
|
330
|
-
'./rocksdb/utilities/transactions/pessimistic_transaction_db.cc',
|
|
331
|
-
'./rocksdb/utilities/transactions/snapshot_checker.cc',
|
|
332
|
-
'./rocksdb/utilities/transactions/transaction_base.cc',
|
|
333
|
-
'./rocksdb/utilities/transactions/transaction_db_mutex_impl.cc',
|
|
334
|
-
'./rocksdb/utilities/transactions/transaction_util.cc',
|
|
335
|
-
'./rocksdb/utilities/transactions/write_prepared_txn.cc',
|
|
336
|
-
'./rocksdb/utilities/transactions/write_prepared_txn_db.cc',
|
|
337
|
-
'./rocksdb/utilities/transactions/write_unprepared_txn.cc',
|
|
338
|
-
'./rocksdb/utilities/transactions/write_unprepared_txn_db.cc',
|
|
339
|
-
'./rocksdb/utilities/ttl/db_ttl_impl.cc',
|
|
340
|
-
'./rocksdb/utilities/wal_filter.cc',
|
|
341
|
-
'./rocksdb/utilities/write_batch_with_index/write_batch_with_index.cc',
|
|
342
|
-
'./rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc',
|
|
343
|
-
],
|
|
344
|
-
'direct_dependent_settings': {
|
|
345
|
-
'include_dirs': [
|
|
346
|
-
'./rocksdb/include',
|
|
347
|
-
],
|
|
348
|
-
},
|
|
349
|
-
'configurations': {
|
|
350
|
-
'Debug': {
|
|
351
|
-
'defines': ['DEBUG'],
|
|
352
|
-
},
|
|
353
|
-
'Release': {
|
|
354
|
-
'defines': ['NDEBUG'],
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
'conditions': [
|
|
358
|
-
['OS=="mac"', {
|
|
359
|
-
'defines': [
|
|
360
|
-
'OS_MACOSX',
|
|
361
|
-
],
|
|
362
|
-
'xcode_settings': {
|
|
363
|
-
'WARNING_CFLAGS': [
|
|
364
|
-
'-Wsign-compare',
|
|
365
|
-
'-Wshadow',
|
|
366
|
-
'-Wno-unused-parameter',
|
|
367
|
-
'-Wno-unused-variable',
|
|
368
|
-
'-Woverloaded-virtual',
|
|
369
|
-
'-Wnon-virtual-dtor',
|
|
370
|
-
'-Wno-missing-field-initializers',
|
|
371
|
-
'-Wno-strict-aliasing',
|
|
372
|
-
'-Wno-invalid-offsetof',
|
|
373
|
-
],
|
|
374
|
-
'OTHER_CPLUSPLUSFLAGS': [
|
|
375
|
-
'-fexceptions',
|
|
376
|
-
'-frtti',
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
}],
|
|
380
|
-
['OS=="linux"', {
|
|
381
|
-
'defines': [
|
|
382
|
-
'OS_LINUX',
|
|
383
|
-
],
|
|
384
|
-
'cflags_cc': [
|
|
385
|
-
'-fexceptions',
|
|
386
|
-
'-frtti',
|
|
387
|
-
'-fno-builtin-memcmp',
|
|
388
|
-
'-Wsign-compare',
|
|
389
|
-
'-Wshadow',
|
|
390
|
-
'-Wno-unused-parameter',
|
|
391
|
-
'-Wno-unused-variable',
|
|
392
|
-
'-Woverloaded-virtual',
|
|
393
|
-
'-Wnon-virtual-dtor',
|
|
394
|
-
'-Wno-missing-field-initializers',
|
|
395
|
-
'-Wno-strict-aliasing',
|
|
396
|
-
'-Wno-invalid-offsetof',
|
|
397
|
-
],
|
|
398
|
-
}],
|
|
399
|
-
['OS=="win"', {
|
|
400
|
-
'defines': [
|
|
401
|
-
'OS_WIN',
|
|
402
|
-
'NOMINMAX',
|
|
403
|
-
],
|
|
404
|
-
'sources': [
|
|
405
|
-
'./rocksdb/port/win/env_default.cc',
|
|
406
|
-
'./rocksdb/port/win/env_win.cc',
|
|
407
|
-
'./rocksdb/port/win/io_win.cc',
|
|
408
|
-
'./rocksdb/port/win/port_win.cc',
|
|
409
|
-
'./rocksdb/port/win/win_logger.cc',
|
|
410
|
-
'./rocksdb/port/win/win_thread.cc',
|
|
411
|
-
],
|
|
412
|
-
'direct_dependent_settings': {
|
|
413
|
-
'defines': [
|
|
414
|
-
'NOMINMAX',
|
|
415
|
-
],
|
|
416
|
-
},
|
|
417
|
-
'msvs_settings': {
|
|
418
|
-
'VCCLCompilerTool': {
|
|
419
|
-
'RuntimeTypeInfo': 'true',
|
|
420
|
-
'BufferSecurityCheck': 'true',
|
|
421
|
-
'DebugInformationFormat': '3',
|
|
422
|
-
'ExceptionHandling': '1',
|
|
423
|
-
'StringPooling': 'true',
|
|
424
|
-
},
|
|
425
|
-
},
|
|
426
|
-
}, {
|
|
427
|
-
'defines': [
|
|
428
|
-
'ROCKSDB_PLATFORM_POSIX',
|
|
429
|
-
'ROCKSDB_LIB_IO_POSIX',
|
|
430
|
-
],
|
|
431
|
-
'sources': [
|
|
432
|
-
'./rocksdb/env/env_posix.cc',
|
|
433
|
-
'./rocksdb/env/fs_posix.cc',
|
|
434
|
-
'./rocksdb/env/io_posix.cc',
|
|
435
|
-
'./rocksdb/port/port_posix.cc',
|
|
436
|
-
],
|
|
437
|
-
}],
|
|
438
|
-
],
|
|
439
|
-
}]
|
|
440
|
-
}
|