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:23:45 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 dfa22cc92 -> fbc852b68


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/fbc852b6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/fbc852b6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/fbc852b6

Branch: refs/heads/branch-1
Commit: fbc852b6809184bdba0bbccb8ef3e1fe848d6f22
Parents: dfa22cc
Author: tedyu <yuzhihong@gmail.com>
Authored: Sun Dec 21 07:23:41 2014 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sun Dec 21 07:23: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/fbc852b6/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 e40b48d..de70eed 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
@@ -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;
   }


Mime
View raw message