HBASE-10201 Addendum fixes typo of putIfAbsent (Duo Zhang)

This commit is contained in:
tedyu 2014-12-21 07:22:41 -08:00
parent e267db45ac
commit 51334fb951
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }