sashapolo commented on code in PR #3241:
URL: https://github.com/apache/ignite-3/pull/3241#discussion_r1495862007
##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/tree/BplusTree.java:
##########
@@ -2155,12 +2130,10 @@ private Result invokeDown(
long page = acquirePage(pageId);
try {
- Result res = RETRY;
+ Result res;
for (; ; ) {
- if (res == RETRY) {
- x.checkLockRetry();
- }
+ x.checkLockRetry();
Review Comment:
because the static analysis says that this condition is always true. And
indeed, we can only get here either on the first iteration, where `res` is
`RETRY` or through the `GO_DOWN` branch where `res` will also be equal to
`RETRY`
--
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]