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

This commit is contained in:
tedyu 2014-12-21 07:23:41 -08:00
parent dfa22cc922
commit fbc852b680
1 changed files with 1 additions and 1 deletions

View File

@ -1685,7 +1685,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;
}