@nxtedition/rocksdb 8.2.5 → 8.2.7
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
CHANGED
|
@@ -734,6 +734,10 @@ NAPI_METHOD(db_open) {
|
|
|
734
734
|
NAPI_STATUS_THROWS(GetProperty(env, options, "walSizeLimit", walSizeLimit));
|
|
735
735
|
dbOptions.WAL_size_limit_MB = walSizeLimit / 1e6;
|
|
736
736
|
|
|
737
|
+
uint32_t maxTotalWalSize = 0;
|
|
738
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "walTotalSizeLimit", walSizeLimit));
|
|
739
|
+
dbOptions.max_total_wal_size = maxTotalWalSize / 1e6;
|
|
740
|
+
|
|
737
741
|
bool walCompression = false;
|
|
738
742
|
NAPI_STATUS_THROWS(GetProperty(env, options, "walCompression", walCompression));
|
|
739
743
|
dbOptions.wal_compression =
|
package/index.js
CHANGED
|
@@ -43,6 +43,7 @@ class RocksLevel extends AbstractLevel {
|
|
|
43
43
|
walCompression: options?.walCompression ?? false,
|
|
44
44
|
unorderedWrite: options?.unorderedWrite ?? false,
|
|
45
45
|
manualWalFlush: options?.manualWalFlush ?? false,
|
|
46
|
+
walTotalSizeLimit: options?.walTotalSizeLimit ?? 0,
|
|
46
47
|
infoLogLevel: options?.infoLogLevel ?? ''
|
|
47
48
|
}
|
|
48
49
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|