anton-vinogradov commented on code in PR #13095:
URL: https://github.com/apache/ignite/pull/13095#discussion_r3436198097
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheReturn.java:
##########
@@ -121,7 +123,26 @@ public GridCacheReturn(
/**
* @return Value.
*/
- @Nullable public <V> V value() {
+ @Nullable public <V> V value(GridCacheContext ctx) {
+ if (v == null) {
+ if (cacheObj != null)
+ v = ctx.cacheObjectContext().unwrapBinaryIfNeeded(cacheObj,
true, false, U.gridClassLoader());
+
+ if (invokeRes && invokeResCol != null) {
+ Map<Object, CacheInvokeResult> map0 =
U.newHashMap(invokeResCol.size());
+
+ for (CacheInvokeDirectResult res : invokeResCol) {
+ CacheInvokeResult<?> res0 = res.error() == null ?
+
CacheInvokeResult.fromResult(ctx.cacheObjectContext().unwrapBinaryIfNeeded(res.result(),
true, false, null)) :
+ CacheInvokeResult.fromError(res.error());
+
+
map0.put(ctx.cacheObjectContext().unwrapBinaryIfNeeded(res.key(), true, false,
null), res0);
+ }
+
+ v = map0;
+ }
+ }
+
return (V)v;
}
Review Comment:
Fixed
--
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]