mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 06:18:12 +00:00
use ReadConcern, not WriteConcern when exporting wind estimation models
This commit is contained in:
1 parent
6abfa5d083
commit
e76eaa9807
1 file changed
+1
-1
+1
-1
@@ -97,7 +97,7 @@ public class MongoDbModelStoreImpl extends AbstractModelStoreImpl {
|
||||
public Map<String, byte[]> exportAllPersistedModels(ModelDomainType domainType) throws ModelPersistenceException {
|
||||
Map<String, byte[]> exportedModels = new HashMap<>();
|
||||
String bucketName = getCollectionName(domainType);
|
||||
GridFSBucket gridFs = GridFSBuckets.create(db, bucketName).withWriteConcern(WriteConcern.MAJORITY);
|
||||
GridFSBucket gridFs = GridFSBuckets.create(db, bucketName).withReadConcern(ReadConcern.MAJORITY);
|
||||
for (GridFSFile gridFSFile : gridFs.find()) {
|
||||
String fileName = gridFSFile.getFilename();
|
||||
byte[] exportedModel;
|
||||
|
||||
Reference in new issue
Block a user