denis-chudov commented on code in PR #2585:
URL: https://github.com/apache/ignite-3/pull/2585#discussion_r1328801061


##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -188,6 +191,36 @@ public TxStateMeta stateMeta(UUID txId) {
         return txStateMap.get(txId);
     }
 
+    @Override
+    public CompletableFuture<TransactionMeta> 
transactionMetaReadTimestampAware(
+            UUID txId,
+            HybridTimestamp readTimestamp,
+            TxStateStorage storage
+    ) {
+        AtomicReference<CompletableFuture<TransactionMeta>> txStateFutRef = 
new AtomicReference<>();
+
+        txStateMap.compute(txId, (k, v) -> {
+            TransactionMeta txMeta = v;
+
+            if (txMeta == null) {
+                txMeta = storage.get(txId);
+            }
+
+            if (txMeta != null && txMeta instanceof TxStateMetaFinishing) {
+                txStateFutRef.set(((TxStateMetaFinishing) 
txMeta).txFinishFuture());
+            } else {
+                // All future transactions will be committed after the 
resolution processed.
+                clock.update(readTimestamp);

Review Comment:
   seems we no longer need this entire method



-- 
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]

Reply via email to