Skip to content

Commit

Permalink
[ISSUE #8438] Fix broker return two messages when query message and i…
Browse files Browse the repository at this point in the history
…ndex service bug
  • Loading branch information
lizhimins committed Jul 24, 2024
1 parent dba2621 commit 40ea66d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,9 @@ protected CompletableFuture<List<IndexItem>> queryAsyncFromUnsealedFile(
buffer.get(bytes);
IndexItem indexItem = new IndexItem(bytes);
long storeTimestamp = indexItem.getTimeDiff() + beginTimestamp.get();
if (hashCode == indexItem.getHashCode()) {
if (hashCode == indexItem.getHashCode() &&
beginTime <= storeTimestamp && storeTimestamp <= endTime) {
result.add(indexItem);
}
if (hashCode == indexItem.getHashCode() &&
beginTime <= storeTimestamp && storeTimestamp <= endTime) {
result.add(indexItem);
if (result.size() > maxCount) {
break;
}
Expand Down

0 comments on commit 40ea66d

Please sign in to comment.