Use the default metadata charge policy when creating an LRU cache via the Java API (#10577)

Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/10577

Reviewed By: akankshamahajan15

Differential Revision: D39035884

Pulled By: ltamasi

fbshipit-source-id: 48f116f8ca172b7eb5eb3651f39ddb891a7ffade
main
Levi Tamasi 2 years ago committed by Facebook GitHub Bot
parent ce529a4ce1
commit 64e74723f7
  1. 1
      HISTORY.md
  2. 2
      java/rocksjni/lru_cache.cc

@ -9,6 +9,7 @@
### Java API Changes ### Java API Changes
* Add CompactionPriority.RoundRobin. * Add CompactionPriority.RoundRobin.
* Revert to using the default metadata charge policy when creating an LRU cache via the Java API.
## 7.6.0 (08/19/2022) ## 7.6.0 (08/19/2022)
### New Features ### New Features

@ -30,7 +30,7 @@ jlong Java_org_rocksdb_LRUCache_newLRUCache(JNIEnv* /*env*/, jclass /*jcls*/,
static_cast<bool>(jstrict_capacity_limit), static_cast<bool>(jstrict_capacity_limit),
static_cast<double>(jhigh_pri_pool_ratio), static_cast<double>(jhigh_pri_pool_ratio),
nullptr /* memory_allocator */, rocksdb::kDefaultToAdaptiveMutex, nullptr /* memory_allocator */, rocksdb::kDefaultToAdaptiveMutex,
rocksdb::kDontChargeCacheMetadata, rocksdb::kDefaultCacheMetadataChargePolicy,
static_cast<double>(jlow_pri_pool_ratio))); static_cast<double>(jlow_pri_pool_ratio)));
return GET_CPLUSPLUS_POINTER(sptr_lru_cache); return GET_CPLUSPLUS_POINTER(sptr_lru_cache);
} }

Loading…
Cancel
Save