Skip to content

DOCS-133 document applyOps #86

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

Merged
merged 3 commits into from
Jul 25, 2012
Merged

DOCS-133 document applyOps #86

merged 3 commits into from
Jul 25, 2012

Conversation

epc
Copy link
Contributor

@epc epc commented Jul 24, 2012

flesh out documentation for applyOps

@epc
Copy link
Contributor Author

epc commented Jul 24, 2012

Updated with suggested revisions.
One problem: the ..writelock and ..see-also statements kept getting included in the code block until I unindented them.

@tychoish
Copy link
Contributor

yeah, the writelock/see lines are both comments that shouldn't be visable at all. so that's fine.


:dbcommand:`applyOps` is an internal command that supports sharding
functionality.
functionality. It applies a command object entry from an :term:`oplog` against a :term:`collection`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I didn't catch this earlier, but I think we can just say "It applies entries from an oplog," I'm not sure "a command object entry," makes sense.

If we want to be really extravagant, we could also say, "It applies oplog entries passed to the command in the <operations> array, to a database, or collection if you specify the ns option."

Correspondingly, we should probably change the "array of operations to perform," to "array of operations to apply."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my initial understanding, but on re-reading the code there's
actually no mention of an oplog at all. It takes oplog entries but applies
them against a collection, used to replay the oplog on shards or replica
sets.

ApplyOps itself is a wrapper around applyOperation_inlock.

On Tue, Jul 24, 2012 at 11:03 PM, Sam Kleinman <
[email protected]

wrote:

:dbcommand:`applyOps` is an internal command that supports sharding
  • functionality.
  • functionality. It applies a command object entry from an
    :term:oplog against a :term:collection.

sorry, I didn't catch this earlier, but I think we can just say "It
applies entries from an oplog," I'm not sure "a command object entry,"
makes sense.

If we want to be really extravagant, we could also say, "It applies oplog
entries passed to the command in the <operations> array, to a
database, or collection if you specify the ns option."

Correspondingly, we should probably change the "array of operations to
perform," to "array of operations to apply."


Reply to this email directly or view it on GitHub:
https://github.com/mongodb/docs/pull/86/files#r1232017

-ed costello
@epc https://twitter.com/epc / +19179752073

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is consistent with the change that I suggested, but I could be wrong.

@epc
Copy link
Contributor Author

epc commented Jul 25, 2012

Added suggested changes.

@tychoish tychoish merged commit 3bf5b0b into mongodb:master Jul 25, 2012
@epc epc deleted the docs133-applyops branch December 22, 2014 19:06
Yingminzhou pushed a commit to mongodb-china/docs that referenced this pull request Dec 10, 2016
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request May 22, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request May 22, 2025
* DCOSP-29004 outdate version info

* Review feedback
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 6, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 16, 2025
* (DOCSP-26581) Adds release notes and updates version

* Sets submodule to v1.3.0
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 24, 2025
* fix line blocks and changelog link
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 24, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 2, 2025
* update compat matrix

* redirects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants