Skip to content

Commit

Permalink
DOCS-133 revisions to applyOps per samk
Browse files Browse the repository at this point in the history
  • Loading branch information
epc committed Jul 24, 2012
1 parent d0d5636 commit 817cb92
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions source/reference/commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2467,19 +2467,23 @@ Internal Use

.. dbcommand:: applyOps(operations, preCondition:[ ns: namespace, q: query, res: result ])

:param array operations: an array of operations to perform.
:param preCondition: Optional. Specifies a precondition which must be met before applying
the entry from the :term:`oplog`. Use :code:`ns` to specify a :term:`namespace`,
:code:`q` to specify a :term:`query` and :code:`res` to specify the
result which the query should match.

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

:param array operations: an array of operations to perform.
:option preCondition: specifies an optional precondition which must be met before applying
the entry from the oplog. Use :code:`ns` to specify a namespace,
:code:`q` to specify a query and :code:`res` to specify the result
which the query should match.
.. code-block:: javascript

db.runCommand({ { applyOps: <operations>, preCondition: [ ns: <namespace>, q: <query>, res: <result> ] } )

.. write-lock

.. see: DOCS-133; SERVER-4259
.. write-lock

.. see: DOCS-133; SERVER-4259

.. dbcommand:: replSetElect

Expand Down

0 comments on commit 817cb92

Please sign in to comment.