rocksdb-native 3.1.4 → 3.1.6
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 +6 -0
- package/index.js +2 -3
- package/lib/state.js +3 -2
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/darwin-arm64/rocksdb-native.node +0 -0
- package/prebuilds/darwin-x64/rocksdb-native.bare +0 -0
- package/prebuilds/darwin-x64/rocksdb-native.node +0 -0
- package/prebuilds/ios-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/ios-arm64-simulator/rocksdb-native.bare +0 -0
- package/prebuilds/ios-x64-simulator/rocksdb-native.bare +0 -0
- package/prebuilds/win32-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/win32-arm64/rocksdb-native.node +0 -0
- package/prebuilds/win32-x64/rocksdb-native.bare +0 -0
- package/prebuilds/win32-x64/rocksdb-native.node +0 -0
package/CMakeLists.txt
CHANGED
|
@@ -7,6 +7,12 @@ find_package(cmake-npm REQUIRED PATHS node_modules/cmake-npm)
|
|
|
7
7
|
|
|
8
8
|
project(rocksdb_native C CXX)
|
|
9
9
|
|
|
10
|
+
bare_target(target)
|
|
11
|
+
|
|
12
|
+
if(target MATCHES "win32")
|
|
13
|
+
add_compile_options(/MT$<$<CONFIG:Debug>:d>)
|
|
14
|
+
endif()
|
|
15
|
+
|
|
10
16
|
fetch_package("github:holepunchto/librocksdb#fb2c47a")
|
|
11
17
|
|
|
12
18
|
add_bare_module(rocksdb_native_bare)
|
package/index.js
CHANGED
|
@@ -80,9 +80,8 @@ class RocksDB {
|
|
|
80
80
|
if (this._index !== -1) this._state.removeSession(this)
|
|
81
81
|
|
|
82
82
|
if (force) {
|
|
83
|
-
|
|
84
|
-
await this._state.sessions[
|
|
85
|
-
}
|
|
83
|
+
while (this._state.sessions.length > 0)
|
|
84
|
+
await this._state.sessions[this._state.sessions.length - 1].close()
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
return this.isRoot() ? this._state.close() : Promise.resolve()
|
package/lib/state.js
CHANGED
|
@@ -150,8 +150,9 @@ module.exports = class DBState extends ReadyResource {
|
|
|
150
150
|
|
|
151
151
|
async _close() {
|
|
152
152
|
while (!this.activity.isIdle()) await this.activity.idle()
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
|
|
154
|
+
while (this.sessions.length > 0)
|
|
155
|
+
await this.sessions[this.sessions.length - 1].close()
|
|
155
156
|
|
|
156
157
|
for (const columnFamily of this.columnFamilies) columnFamily.destroy()
|
|
157
158
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|