-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDBClient cleanup #351
Changes from 6 commits
aeacb3f
823d62a
b377359
7906d52
0960911
4e0821b
277280c
d93256e
022cf2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
public final class OptionsSupport { | ||
|
||
/** Value for an unavailable property. */ | ||
protected static final String UNAVAILABLE = "n/a"; | ||
private static final String UNAVAILABLE = "n/a"; | ||
|
||
/** | ||
* Updates the URL with the appropriate attributes if legacy properties are | ||
|
@@ -76,7 +76,7 @@ else if ("acknowledged".equals(writeConcernType)) { | |
result = addUrlOption(result, "w", "1"); | ||
} | ||
else if ("journaled".equals(writeConcernType)) { | ||
result = addUrlOption(result, "journal", "true"); | ||
result = addUrlOption(result, "j", "true"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The documentation for the standard URI says to use "journal": http://docs.mongodb.org/manual/reference/connection-string/#uri.journal Does that not work with the Java Driver? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It never has, actually. I reported it as https://jira.mongodb.org/browse/JAVA-1890, but for now let's switch to "j". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh.. Hummm. The problem is that the async driver only supports the "journal" parameter. Since "journal" is the documented name I think we should leave that. I wouldn't be opposed to adding both a "journal" and "j" parameter to the URI with a reference to remove it once the Jira ticket is released. |
||
} | ||
else if ("replica_acknowledged".equals(writeConcernType)) { | ||
result = addUrlOption(result, "w", "2"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be renamed to show what it stands for instead of the type of object it is. Maybe INSERT_UNORDERED?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Done.