Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuz10 committed Sep 29, 2024
1 parent 0fb7f4f commit 8bd91e3
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,10 @@ private int pullNum(long cqOffset, long maxCqOffset) {

@Override
public ReferredIterator<CqUnit> iterateFrom(final long startIndex) {
try {
long maxCqOffset = getMaxOffsetInQueue();
if (startIndex < maxCqOffset) {
int num = pullNum(startIndex, maxCqOffset);
return new LargeRocksDBConsumeQueueIterator(startIndex, num);
}
} catch (RocksDBException e) {
log.error("[RocksDBConsumeQueue] iterateFrom error!", e);
long maxCqOffset = getMaxOffsetInQueue();
if (startIndex < maxCqOffset) {
int num = pullNum(startIndex, maxCqOffset);
return new LargeRocksDBConsumeQueueIterator(startIndex, num);
}
return null;
}
Expand Down

0 comments on commit 8bd91e3

Please sign in to comment.