mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 10:48:47 +00:00
bug6226: duplicate key exception is not needed
This commit is contained in:
+5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user