HBASE-10693 Correct declarations of Atomic* fields from 'volatile' to 'final' (Honghua)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1575059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-03-06 21:50:19 +00:00
parent 61d7c89d24
commit 727b414e35
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ public class HFile {
}
// for test purpose
public static volatile AtomicLong dataBlockReadCnt = new AtomicLong(0);
public static final AtomicLong dataBlockReadCnt = new AtomicLong(0);
// number of sequential reads
public static final int getReadOps() {

View File

@ -1294,7 +1294,7 @@ public class SplitLogManager extends ZooKeeperListener {
volatile TaskBatch batch;
volatile TerminationStatus status;
volatile int incarnation;
volatile AtomicInteger unforcedResubmits = new AtomicInteger();
final AtomicInteger unforcedResubmits = new AtomicInteger();
volatile boolean resubmitThresholdReached;
@Override