@nxtedition/rocksdb 13.4.3 → 13.4.4

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
@@ -934,9 +934,9 @@ napi_status InitOptions(napi_env env, T& columnOptions, const U& options) {
934
934
  cache = nullptr;
935
935
  } else if (compressedRatio > 0.0) {
936
936
  rocksdb::TieredCacheOptions options;
937
+ options.cache_type = rocksdb::PrimaryCacheType::kCacheTypeHCC;
937
938
  options.total_capacity = cacheSize;
938
939
  options.compressed_secondary_ratio = compressedRatio;
939
- options.comp_cache_opts.compression_type = rocksdb::CompressionType::kZSTD;
940
940
  cache = rocksdb::NewTieredCache(options);
941
941
  } else {
942
942
  cache = rocksdb::HyperClockCacheOptions(cacheSize, 0).MakeSharedCache();
@@ -962,9 +962,9 @@ napi_status InitOptions(napi_env env, T& columnOptions, const U& options) {
962
962
  }
963
963
  } else if (compressedRatio > 0.0) {
964
964
  rocksdb::TieredCacheOptions options;
965
+ options.cache_type = rocksdb::PrimaryCacheType::kCacheTypeHCC;
965
966
  options.total_capacity = cacheSize;
966
967
  options.compressed_secondary_ratio = compressedRatio;
967
- options.comp_cache_opts.compression_type = rocksdb::CompressionType::kZSTD;
968
968
  tableOptions.block_cache = rocksdb::NewTieredCache(options);
969
969
  } else {
970
970
  tableOptions.block_cache = rocksdb::HyperClockCacheOptions(cacheSize, 0).MakeSharedCache();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "13.4.3",
3
+ "version": "13.4.4",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",