Skip to content

Commit 2312416

Browse files
committed
If SX-message does not exist - always flag as updated
1 parent 9bdc96e commit 2312416

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/no/rutebanken/anshar/data/Situations.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ public Collection<PtSituationElement> addAll(String datasetId, List<PtSituationE
322322
String existingChecksum = checksumCache.get(key);
323323
timingTracer.mark("checksumCache.get");
324324
boolean updated;
325-
// if (existingChecksum != null && situationElements.containsKey(key)) { // Checksum not compared if actual situation does not exist
326-
if (existingChecksum != null) {
325+
if (existingChecksum != null && situationElements.containsKey(key)) { // Checksum not compared if actual situation does not exist
327326
//Exists - compare values
328327
updated = !(currentChecksum.equals(existingChecksum));
329328
} else {

0 commit comments

Comments
 (0)