petrov-mg commented on code in PR #11176:
URL: https://github.com/apache/ignite/pull/11176#discussion_r1485640798
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -3653,6 +3654,52 @@ public void awaitLastFut() {
}
}
+ /**
+ * Replaces previous async operation future on transaction suspend.
+ */
+ public @Nullable FutureHolder suspendLastFut() {
+ FutureHolder holder = lastFut.get();
+
+ IgniteInternalFuture fut = holder.future();
+
+ if (fut != null && !fut.isDone()) {
+ lastFut.set(new FutureHolder());
Review Comment:
Looks like you can just use `lastFut.remove()` here.
--
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]