guid-git commented on issue #8577:
URL: https://github.com/apache/shardingsphere/issues/8577#issuecomment-743097077
private int[] accumulate(final List<int[]> results) {
int[] result = new int[batchCount];
int count = 0;
for (BatchRouteUnit each : routeUnits) {
for (Entry<Integer, Integer> entry :
each.getJdbcAndActualAddBatchCallTimesMap().entrySet()) {
### **int value = null == results.get(count) ? 0 :
results.get(count)[entry.getValue()];**
if (DatabaseType.Oracle == getDatabaseType()) {
result[entry.getKey()] = value;
} else {
result[entry.getKey()] += value;
}
}
count++;
}
return result;
}
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]