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:
parent
ae4af86f5a
commit
095baf8848
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue