sunhelly commented on a change in pull request #3436:
URL: https://github.com/apache/hbase/pull/3436#discussion_r663797975
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
##########
@@ -4044,60 +4047,58 @@ private static Get toGet(final Mutation mutation)
throws IOException {
get.setTimeRange(tr.getMin(), tr.getMax());
}
- List<Cell> currentValues = region.get(get, false);
-
- // Iterate the input columns and update existing values if they were
found, otherwise
- // add new column initialized to the delta amount
- int currentValuesIndex = 0;
- for (int i = 0; i < deltas.size(); i++) {
- Cell delta = deltas.get(i);
- Cell currentValue = null;
- if (currentValuesIndex < currentValues.size() &&
- CellUtil.matchingQualifier(currentValues.get(currentValuesIndex),
delta)) {
- currentValue = currentValues.get(currentValuesIndex);
- if (i < (deltas.size() - 1) && !CellUtil.matchingQualifier(delta,
deltas.get(i + 1))) {
- currentValuesIndex++;
+ List<Cell> currentValues = new ArrayList<>();
Review comment:
Thanks, I'll change it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]