HBASE-10201 Addendum fixes typo of putIfAbsent (Duo Zhang)
This commit is contained in:
parent
e267db45ac
commit
51334fb951
|
@ -1684,7 +1684,7 @@ public class FSHLog implements WAL {
|
||||||
oldestUnflushedStoreSequenceIdsOfRegion =
|
oldestUnflushedStoreSequenceIdsOfRegion =
|
||||||
new ConcurrentSkipListMap<byte[], Long>(Bytes.BYTES_COMPARATOR);
|
new ConcurrentSkipListMap<byte[], Long>(Bytes.BYTES_COMPARATOR);
|
||||||
ConcurrentMap<byte[], Long> alreadyPut =
|
ConcurrentMap<byte[], Long> alreadyPut =
|
||||||
oldestUnflushedStoreSequenceIds.put(encodedRegionName,
|
oldestUnflushedStoreSequenceIds.putIfAbsent(encodedRegionName,
|
||||||
oldestUnflushedStoreSequenceIdsOfRegion);
|
oldestUnflushedStoreSequenceIdsOfRegion);
|
||||||
return alreadyPut == null ? oldestUnflushedStoreSequenceIdsOfRegion : alreadyPut;
|
return alreadyPut == null ? oldestUnflushedStoreSequenceIdsOfRegion : alreadyPut;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue