nizhikov commented on code in PR #11528:
URL: https://github.com/apache/ignite/pull/11528#discussion_r1793508792


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/odbc/ClientListenerAbstractConnectionContext.java:
##########
@@ -149,6 +159,39 @@ public String clientDescriptor() {
         return clientDesc;
     }
 
+    /**
+     * Next transaction id for this connection.
+     */
+    public int nextTxId() {
+        int txId = txIdSeq.incrementAndGet();
+
+        return txId == NO_TX ? txIdSeq.incrementAndGet() : txId;

Review Comment:
   all txId values except 0 allowed.
   Values less then zero are completely OK.



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