HBASE-8650 HRegionServer#updateRecoveringRegionLastFlushedSequenceId(HRegion) makes inefficient use of keySet iterator instead of entrySet iterator (Ted Yu)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1491134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-06-09 03:49:15 +00:00
parent ae4af86f5a
commit 095baf8848
1 changed files with 1 additions and 2 deletions

View File

@ -4198,8 +4198,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
String previousRSName = this.getLastFailedRSFromZK(region.getEncodedName());
Map<byte[], Long> maxSeqIdInStores = r.getMaxStoreSeqIdForLogReplay();
long minSeqIdForLogReplay = -1;
for (byte[] columnFamily : maxSeqIdInStores.keySet()) {
Long storeSeqIdForReplay = maxSeqIdInStores.get(columnFamily);
for (Long storeSeqIdForReplay : maxSeqIdInStores.values()) {
if (minSeqIdForLogReplay == -1 || storeSeqIdForReplay < minSeqIdForLogReplay) {
minSeqIdForLogReplay = storeSeqIdForReplay;
}