nizhikov commented on code in PR #9907:
URL: https://github.com/apache/ignite/pull/9907#discussion_r880613212
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -5068,19 +5071,21 @@ private <R> IgniteInternalFuture<R> getWithRepairAsync(
/**
* Checks the given {@code keys} and repairs entries across the topology
if needed.
*
- * @param keys Keys.
+ * @param ex Consistency violation exception.
* @param opCtx Operation context.
* @param skipVals Skip values flag.
* @return Compound future that represents a result of repair action.
*/
private IgniteInternalFuture<Void> repairAsync(
- Collection<KeyCacheObject> keys,
+ IgniteConsistencyViolationException ex,
final CacheOperationContext opCtx,
boolean skipVals) {
GridCompoundReadRepairFuture fut = new GridCompoundReadRepairFuture();
- for (KeyCacheObject key : keys)
- fut.add(repairAsync(key, opCtx, skipVals));
+ for (KeyCacheObject key : ex.keys())
Review Comment:
Multiline for. Braces required.
--
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]