HBASE-9856 Fix some findbugs Performance Warnings
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1546888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7b4b061bcf
commit
13e9eda3e7
|
@ -5888,7 +5888,7 @@ public class HRegion implements HeapSize { // , Writable{
|
|||
* One thread may acquire multiple locks on the same row simultaneously.
|
||||
* The locks must be released by calling release() from the same thread.
|
||||
*/
|
||||
public class RowLock {
|
||||
public static class RowLock {
|
||||
@VisibleForTesting final RowLockContext context;
|
||||
private boolean released = false;
|
||||
|
||||
|
|
|
@ -120,8 +120,9 @@ public class WALEditsReplaySink {
|
|||
long startTime = EnvironmentEdgeManager.currentTimeMillis();
|
||||
|
||||
// replaying edits by region
|
||||
for (HRegionInfo curRegion : entriesByRegion.keySet()) {
|
||||
List<HLog.Entry> allActions = entriesByRegion.get(curRegion);
|
||||
for (Map.Entry<HRegionInfo, List<HLog.Entry>> _entry : entriesByRegion.entrySet()) {
|
||||
HRegionInfo curRegion = _entry.getKey();
|
||||
List<HLog.Entry> allActions = _entry.getValue();
|
||||
// send edits in chunks
|
||||
int totalActions = allActions.size();
|
||||
int replayedActions = 0;
|
||||
|
|
Loading…
Reference in New Issue