Skip to content

Commit

Permalink
add missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 5, 2024
1 parent 9a32666 commit a3242f5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/src/main/java/org/elasticsearch/index/engine/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -947,12 +947,12 @@ public boolean allowSearchIdleOptimization() {
*/
@Deprecated
public abstract Translog.Snapshot newChangesSnapshot(
String source,
long fromSeqNo,
long toSeqNo,
boolean requiredFullRange,
boolean singleConsumer,
boolean accessStats
String source,
long fromSeqNo,
long toSeqNo,
boolean requiredFullRange,
boolean singleConsumer,
boolean accessStats
) throws IOException;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3136,6 +3136,18 @@ public int countChanges(String source, long fromSeqNo, long toSeqNo) throws IOEx
}
}

@Override
public Translog.Snapshot newChangesSnapshot(
String source,
long fromSeqNo,
long toSeqNo,
boolean requiredFullRange,
boolean singleConsumer,
boolean accessStats
) throws IOException {
return newChangesSnapshot(source, fromSeqNo, toSeqNo, requiredFullRange, singleConsumer, accessStats, 0);
}

@Override
public Translog.Snapshot newChangesSnapshot(
String source,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ public int countChanges(String source, long fromSeqNo, long toSeqNo) throws IOEx
}
}

@Override
public Translog.Snapshot newChangesSnapshot(
String source,
long fromSeqNo,
long toSeqNo,
boolean requiredFullRange,
boolean singleConsumer,
boolean accessStats
) throws IOException {
return Translog.Snapshot.EMPTY;
}

@Override
public Translog.Snapshot newChangesSnapshot(
String source,
Expand Down

0 comments on commit a3242f5

Please sign in to comment.