Vladsz83 commented on code in PR #10938:
URL: https://github.com/apache/ignite/pull/10938#discussion_r1331928628


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearTxLocal.java:
##########
@@ -3327,14 +3233,7 @@ public IgniteTxMappings mappings() {
 
     /** {@inheritDoc} */
     @Override public boolean queryEnlisted() {
-        if (!txState.mvccEnabled())
-            return false;
-        else if (qryEnlisted)
-            return true;
-        else if (mappings.single())
-            return !mappings.empty() && mappings.singleMapping().queryUpdate();
-        else
-            return 
mappings.mappings().stream().anyMatch(GridDistributedTxMapping::queryUpdate);
+        return false;

Review Comment:
   Why removed
   
   `if (mappings.single())
               return !mappings.empty() && 
mappings.singleMapping().queryUpdate();
           else
               return 
mappings.mappings().stream().anyMatch(GridDistributedTxMapping::queryUpdate);` ?



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