bug6226: duplicate key exception is not needed

This commit is contained in:
Masha Kashirina
2026-06-22 14:52:39 +02:00
parent 302556187d
commit 239a575be6
@@ -3309,6 +3309,11 @@ public class DomainObjectFactoryImpl implements DomainObjectFactory {
@Override
public Map<RaceIdentifier, ManeuverRaceFingerprint> loadFingerprintsForManeuverHashes() {
final MongoCollection<Document> maneuversCollection = database.getCollection(CollectionNames.MANEUVERS.name());
try {
maneuversCollection.dropIndex("maneuversbyeventandrace");
} catch (final Exception e) {
// index does not exist yet, nothing to drop
}
try {
maneuversCollection.dropIndex("maneuversbyeventraceandcompetitor");
} catch (final Exception e) {