Fixed defect in CachingAsyncConsistentMap (wrong method call).
Change-Id: I5873d1476ac68e6c2ee4462e629b00313214ef36
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -85,7 +85,7 @@ public class CachingAsyncConsistentMap<K, V> extends DelegatingAsyncConsistentMa | ... | @@ -85,7 +85,7 @@ public class CachingAsyncConsistentMap<K, V> extends DelegatingAsyncConsistentMa |
85 | 85 | ||
86 | @Override | 86 | @Override |
87 | public CompletableFuture<Versioned<V>> putAndGet(K key, V value) { | 87 | public CompletableFuture<Versioned<V>> putAndGet(K key, V value) { |
88 | - return super.put(key, value) | 88 | + return super.putAndGet(key, value) |
89 | .whenComplete((r, e) -> cache.invalidate(key)); | 89 | .whenComplete((r, e) -> cache.invalidate(key)); |
90 | } | 90 | } |
91 | 91 | ... | ... |
-
Please register or login to post a comment