-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-1360 add write concern tags info to getLastError #836
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -26,17 +26,27 @@ getLastError | |
flush. If :program:`mongod` does not have | ||
journaling enabled, this option has no effect. | ||
|
||
:param w: When running with replication, this is the number of | ||
servers to replicate to before returning. A ``w`` value of | ||
1 indicates the primary only. A ``w`` value of 2 | ||
includes the primary and at least one secondary, etc. | ||
In place of a number, you may also set ``w`` to | ||
``majority`` to indicate that the command should wait | ||
until the latest write propagates to a majority of | ||
replica set members. If using ``w``, you should also use | ||
``wtimeout``. Specifying a value for ``w`` without also | ||
providing a ``wtimeout`` may cause | ||
:dbcommand:`getLastError` to block indefinitely. | ||
:param integer w: | ||
The number of replica set members to replicate a write operation to | ||
before returning. A value of ``1`` indicates to wait until the | ||
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. we should be more clear here that "to replicate" means "the number of set members that must acknowledge a write operation" |
||
primary member acknowledges the write operation before returning. | ||
A ``w`` value of 2 includes the primary and at least one secondary, etc. | ||
If using ``w``, you should also use | ||
``wtimeout``. Specifying a value for ``w`` without also | ||
providing a ``wtimeout`` may cause | ||
:dbcommand:`getLastError` to block indefinitely | ||
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. terminal punctuation. |
||
|
||
:param w: | ||
In place of a number, you may also set ``w`` to | ||
``"majority"`` to indicate that the command should wait | ||
until the latest write propagates to a majority of | ||
replica set members. | ||
|
||
:param w: | ||
Alternately, ``w`` may be a string corresponding to a custom | ||
:data:`getLastErrorMode <local.system.replset.settings.getLastErrorModes>`. | ||
See :ref:`tag-sets-custom-write-concern` and :ref:`custom-write-concerns` | ||
for information on defining and using custom tag sets and write concerns. | ||
|
||
:param boolean fsync: If ``true``, wait for :program:`mongod` to write this | ||
data to disk before returning. Defaults to | ||
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this should be cross referenced.
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.
done.
Regret my github comments gmail filter.