HCOLL-155 change V acquireUsing(@NotNull K key, V usingValue) to included the following

V value = getUsing(key, usingValue);

                  if (value != null)
                      return value;
This commit is contained in:
Rob Austin
2014-11-11 17:22:07 +00:00
parent 6d4de58752
commit 7ce19638c4
@@ -384,6 +384,10 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, KI>,
@Override
public V acquireUsing(@NotNull K key, V usingValue) {
V value = getUsing(key, usingValue);
if (value != null)
return value;
try (WriteContext<K, V> kvContext =
lookupUsing(key, usingValue, LockType.WRITE_LOCK, false)) {