Skip to content

Commit 8de0a1c

Browse files
committed
fixed memory tiers code block in config
1 parent 8d4f1a9 commit 8de0a1c

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

cachelib/cachebench/util/CacheConfig.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ CacheConfig::CacheConfig(const folly::dynamic& configJson) {
117117
JSONSetVal(configJson, minPromotionBatch);
118118
JSONSetVal(configJson, maxEvictionPromotionHotness);
119119

120+
if (configJson.count("memoryTiers")) {
121+
for (auto& it : configJson["memoryTiers"]) {
122+
memoryTierConfigs.push_back(MemoryTierConfig(it).getMemoryTierCacheConfig());
123+
}
124+
}
120125
// if you added new fields to the configuration, update the JSONSetVal
121126
// to make them available for the json configs and increment the size
122127
// below

cachelib/external/fbthrift

Submodule fbthrift updated 1667 files

cachelib/external/fizz

Submodule fizz updated 39 files

cachelib/external/folly

Submodule folly updated 147 files

0 commit comments

Comments
 (0)