diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-07-13 10:00:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 10:00:52 +0200 |
commit | 218b3758309fc922257e5024bee1a80bb3e5f8c9 (patch) | |
tree | 996e29f8e1a7c73d1d748b524f4fed4cb56a4e7a /controller-server | |
parent | f13f9aba318d293e07b75190dd7aec7211a52b83 (diff) | |
parent | 1555904a238c29e7ddf4b7711c2f23ddb3280faf (diff) |
Merge pull request #27755 from vespa-engine/jonmv/more-efficient-node-cache
Replace hash based node cache with ZK node versino based
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/persistence/CuratorDb.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/persistence/CuratorDb.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/persistence/CuratorDb.java index 968befcd0a7..89b4166e477 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/persistence/CuratorDb.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/persistence/CuratorDb.java @@ -390,7 +390,7 @@ public class CuratorDb { .map(stat -> cachedApplications.compute(path, (__, old) -> old != null && old.getFirst() == stat.getVersion() ? old - : new Pair<>(stat.getVersion(), read(path, bytes -> applicationSerializer.fromSlime(bytes)).get())).getSecond()); + : new Pair<>(stat.getVersion(), read(path, applicationSerializer::fromSlime).get())).getSecond()); } public List<Application> readApplications(boolean canFail) { |