HBASE-1624 Don't sort Puts if only one in list in HCM#processBatchOfRows

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@791999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-07-07 23:25:39 +00:00
parent d8607b4e16
commit 79e1eed60e
2 changed files with 4 additions and 1 deletions

View File

@ -447,6 +447,7 @@ Release 0.20.0 - Unreleased
HBASE-1575 HMaster does not handle ZK session expiration
HBASE-1620 Need to use special StoreScanner constructor for major compactions
(passed sf, no caching, etc) (Jon Gray via Stack)
HBASE-1624 Don't sort Puts if only one in list in HCM#processBatchOfRows
OPTIMIZATIONS
HBASE-1412 Change values for delete column and column family in KeyValue

View File

@ -1003,7 +1003,9 @@ public class HConnectionManager implements HConstants {
}
boolean retryOnlyOne = false;
int tries = 0;
Collections.sort(list);
if (list.size() > 1) {
Collections.sort(list);
}
List<Put> currentPuts = new ArrayList<Put>();
HRegionLocation location =
getRegionLocationForRowWithRetries(tableName, list.get(0).getRow(),