-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport: ensure indexes and caps at startup only
- Loading branch information
1 parent
c1490a8
commit 57d3450
Showing
65 changed files
with
256 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/AbstractMongoDbManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/AsyncMongoDbManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/MongoDbErrorCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/MongoDbManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/MongoDbModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/MongoDbPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/seedstack/mongodb/internal/SyncMongoDbManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/resources/org/seedstack/mongodb/MongoDbConfig.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/src/main/resources/org/seedstack/mongodb/internal/MongoDbErrorCode.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
-----BEGIN PGP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nqbyKG3znRH1UvQZzuzxIh/CM8WzXkgppGE95xqOhKUKvfG | ||
2pIJj0CXmi71ZKJSKi7ADH+djn1ZApM25dxfMOHDIAk06AByaIfum4gJL7k4jsfA | ||
pZyjFDQTryNlHk6HkXCgP6jy1xtkcpJiPq7nFozt7kdMfoImIjLQUJ7wiSdgZBqb | ||
XwquCSxipiTcJfcrVIRQ34ZyuM5Z1IB+RF3cr49Rn65bWUpfH6IldxQYb69Cmhyl | ||
Uq4vi2E9jBjDAsN3/U3sdJxIHG2Qs7cVDDJpIKiBTQ58vuupK48PcWio0MQWKFda | ||
NDK7X7mEtWvm0XqJWWCpLc/lodMt+/qlgEYxDoh1f+Hg+AxdW+UtIrj12LVDfJw+ | ||
ETb3Y/mF0OlCQR56l7Zevp+0ocOvpd8KGWAqfATqaMf/+WDX7TwEJ2X0olqTAgA4 | ||
qS7F7RHN99ohApUrCRL6BqGtbAtFFrzf8OOuI7/AH7Hg0+yxaTNBZdTtWfcTee0e | ||
qpkiNhkcsyZy438ObChQNBosqf7znI+BOf4GTEBDCtKyM0ZYpsV1nkTTz6xMhK8= | ||
=LXKR | ||
-----END PGP PRIVATE KEY BLOCK----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
morphia/src/main/java/org/seedstack/mongodb/morphia/BaseMorphiaRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
morphia/src/main/java/org/seedstack/mongodb/morphia/Morphia.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
morphia/src/main/java/org/seedstack/mongodb/morphia/MorphiaConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright © 2013-2021, The SeedStack authors <http://seedstack.org> | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package org.seedstack.mongodb.morphia; | ||
|
||
import org.seedstack.coffig.Config; | ||
|
||
@Config("mongoDb.morphia") | ||
public class MorphiaConfig { | ||
private boolean ensureCapsAtStartup = true; | ||
private boolean ensureIndexesAtStartup = true; | ||
|
||
public boolean isEnsureCapsAtStartup() { | ||
return ensureCapsAtStartup; | ||
} | ||
|
||
public MorphiaConfig setEnsureCapsAtStartup(boolean ensureCapsAtStartup) { | ||
this.ensureCapsAtStartup = ensureCapsAtStartup; | ||
return this; | ||
} | ||
|
||
public boolean isEnsureIndexesAtStartup() { | ||
return ensureIndexesAtStartup; | ||
} | ||
|
||
public MorphiaConfig setEnsureIndexesAtStartup(boolean ensureIndexesAtStartup) { | ||
this.ensureIndexesAtStartup = ensureIndexesAtStartup; | ||
return this; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
morphia/src/main/java/org/seedstack/mongodb/morphia/MorphiaDatastore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.