mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Correct semantics when loading absent values
This commit is contained in:
parent
d720364b18
commit
02a7d9a565
@ -307,9 +307,9 @@ public class Cache<K, V> {
|
||||
} catch (Exception e) {
|
||||
throw new ExecutionException(e);
|
||||
}
|
||||
}
|
||||
if (value != null) {
|
||||
put(key, value, now);
|
||||
if (value != null) {
|
||||
put(key, value, now);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user