Skip to content

Commit

Permalink
Addressing PR comment: explicit logic check
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Kala <ankikala@amazon.com>
  • Loading branch information
ankitkala committed Sep 12, 2022
1 parent efbd59a commit 589e9e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ public Translog.Snapshot getHistoryOperations(String reason, long startingSeqNo,
* This method should only be invoked if Segment Replication or Remote Store is not enabled.
*/
public Translog.Snapshot getHistoryOperationsFromTranslog(long startingSeqNo, long endSeqNo) throws IOException {
assert !(indexSettings.isSegRepEnabled() || indexSettings.isRemoteStoreEnabled())
assert (indexSettings.isSegRepEnabled() || indexSettings.isRemoteStoreEnabled() == false)
: "unsupported operation for segment replication enabled indices or remote store backed indices";
return getEngine().translogManager().newChangesSnapshot(startingSeqNo, endSeqNo, true);
}
Expand Down

0 comments on commit 589e9e9

Please sign in to comment.