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:
Zhihong Yu 2013-12-02 03:45:59 +00:00
parent 7b4b061bcf
commit 13e9eda3e7
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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;