timoninmaxim commented on code in PR #11713:
URL: https://github.com/apache/ignite/pull/11713#discussion_r1895990650


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedCacheAdapter.java:
##########
@@ -164,6 +169,9 @@ public void removeVersionedEntry(KeyCacheObject key, 
GridCacheVersion ver) {
 
     /** {@inheritDoc} */
     @Override public void removeAll() throws IgniteCheckedException {
+        if (ctx.transactional() && ctx.grid().transactions().tx() != null)

Review Comment:
   Actually there is no need to check whether cache is transactional. For 
atomic caches and transactions there is already check in 
`GridCacheGateway#checkAtomicOpsInTx`. Let's remove this condition.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to