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 =
|
||||
new ConcurrentSkipListMap<byte[], Long>(Bytes.BYTES_COMPARATOR);
|
||||
ConcurrentMap<byte[], Long> alreadyPut =
|
||||
oldestUnflushedStoreSequenceIds.put(encodedRegionName,
|
||||
oldestUnflushedStoreSequenceIds.putIfAbsent(encodedRegionName,
|
||||
oldestUnflushedStoreSequenceIdsOfRegion);
|
||||
return alreadyPut == null ? oldestUnflushedStoreSequenceIdsOfRegion : alreadyPut;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue