gvvinblade commented on a change in pull request #5949: IGNITE-8841
URL: https://github.com/apache/ignite/pull/5949#discussion_r253520671
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearTxLocal.java
##########
@@ -3336,6 +3346,102 @@ else if (mappings.single())
return
mappings.mappings().stream().anyMatch(GridDistributedTxMapping::queryUpdate);
}
+ /**
+ * Requests version on coordinator.
+ *
+ * @return Future to wait for result.
+ */
+ public IgniteInternalFuture<MvccSnapshot> requestSnapshot() {
+ if (isRollbackOnly())
+ return new GridFinishedFuture<>(rollbackException());
+
+ MvccSnapshot mvccSnapshot0 = mvccSnapshot;
+
+ if (mvccSnapshot0 != null)
+ return new GridFinishedFuture<>(mvccSnapshot0);
+
+ MvccProcessor prc = cctx.coordinators();
Review comment:
See my comment above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services