hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-10201 Addendum fixes typo of putIfAbsent (Duo Zhang)
Date Sun, 21 Dec 2014 15:22:46 GMT
Repository: hbase
Updated Branches:
  refs/heads/master e267db45a -> 51334fb95


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


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/51334fb9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/51334fb9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/51334fb9

Branch: refs/heads/master
Commit: 51334fb951232aa56add118d142e6b82da204494
Parents: e267db4
Author: tedyu <yuzhihong@gmail.com>
Authored: Sun Dec 21 07:22:41 2014 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sun Dec 21 07:22:41 2014 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/51334fb9/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
index d2ba69d..248b71a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
@@ -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;
   }


Mime
View raw message