Skip to content

Commit 51f599e

Browse files
committed
Fix unit test
1 parent afafd56 commit 51f599e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,9 +1506,9 @@ public void asyncMarkDelete(final Position position, Map<String, Long> propertie
15061506
if (config.isBatchIndexDeleteEnabled()) {
15071507
if (newPosition.ackSet != null) {
15081508
batchDeletedIndexes.put(newPosition, newPosition.ackSet);
1509+
newPosition = ledger.getPreviousPosition(newPosition);
15091510
}
15101511
batchDeletedIndexes.subMap(PositionImpl.earliest, newPosition).clear();
1511-
newPosition = ledger.getPreviousPosition(newPosition);
15121512
} else if (newPosition.ackSet != null) {
15131513
callback.markDeleteFailed(new ManagedLedgerException("Batch ack set not support"), ctx);
15141514
return;

0 commit comments

Comments
 (0)