aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2023-07-13 09:35:47 +0200
committerjonmv <venstad@gmail.com>2023-07-13 09:35:47 +0200
commit1555904a238c29e7ddf4b7711c2f23ddb3280faf (patch)
tree7bc57978ff7448dbeeaa647ae9100c2ee72298c2 /controller-server
parentfcabb9aff7799ad13dc91c289b81c3dd8f3cb439 (diff)
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.java2
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) {