Skip to content

Commit

Permalink
DBZ-7345 Use equality check instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros authored and jpechane committed Jan 17, 2024
1 parent adaaebe commit 632b4f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static List<LogFile> deduplicateLogFiles(Collection<LogFile> archiveLogs,
// Remove the archive log which has the same sequence number and redo thread number.
for (LogFile redoLog : redoLogs) {
archiveLogs.removeIf(f -> {
if (f.getSequence().equals(redoLog.getSequence()) && f.getThread() == redoLog.getThread()) {
if (f.equals(redoLog)) {
LOGGER.debug("Removing redo thread {} archive log {} with duplicate sequence {} to {}",
f.getThread(), f.getFileName(), f.getSequence(), redoLog.getFileName());
return true;
Expand Down

0 comments on commit 632b4f8

Please sign in to comment.