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:
parent
61d7c89d24
commit
727b414e35
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue