poorbarcode commented on code in PR #24938:
URL: https://github.com/apache/pulsar/pull/24938#discussion_r2518481873


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java:
##########
@@ -1489,7 +1506,10 @@ public void operationComplete() {
                 // modify mark delete and read position since we are able to 
persist new position for cursor
                 lock.writeLock().lock();
                 try {
-                    if (markDeletePosition.compareTo(newMarkDeletePosition) >= 
0) {
+                    int compareRes = comparePositions(markDeletePosition, 
newMarkDeletePosition);
+                    if (compareRes == 0) {

Review Comment:
   Removed



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